eran
Sun Jun 26 15:43:19 CDT 2005
As far as I know, there is no managed API that can give you this
information.
You will have to revet to Platform Invoke (P/Invoke) in order to get
this information.
You will have to use the extern command and DllExport attribute to
define the following functions (these are easy functions to translate):
ProcessIdToSessionId - To get the Session Id.
WTSQuerySessionInformation - To get the rest of the information.
Hope this helps,
Eran.
=======================================================
http://dotnetdebug.blogspot.com - Advanced .NET Debugging Blog
The place for WinDbg, SOS, live and post mortem debugging, tips, tricks
and fun stuff.