I'd like to get the information of remote session source at the destination server with this function*1.
It can be written by C# with DllImport. The value of
It takes some doing because the structure of
ppBuffer is changed depending on the specified value in
WTSInfoClass. Here is a struct when
If you get all the sessions except itself, you can use this function.
*1:It seems OK for launching app with UAC elevation