.comment-link {margin-left:.6em;}
Gert .Net
[GertDotNet]
20040504
 
Get the Terminal Services session ID
To retrieve the ID of the session (Terminal Services session that is) you can use the function WTSGetActiveConsoleSessionID.

[System.Runtime.InteropServices.DllImport("kernel32")]

private static extern uint WTSGetActiveConsoleSessionId();

Comments: Een reactie plaatsen


Links to this post:

Een koppeling maken


Powered by Blogger