Desktop Functions: Smart Device Functions:
|
Search Results for "wtsgetactiveconsolesessionid" in [All]Enums1: SystemMetric
/// For more information, seeWTSGetActiveConsoleSessionId.
''' Windows XP (v5.1+) This system metric is used in a Terminal Services environment. If the calling process is associated with a Terminal Services client session the return value is nonzero. If the calling process is associated with the Terminal Server console session the return value is zero. The console session is not necessarily the physical console - see WTSGetActiveConsoleSessionId for more information. wtsapi32Used in conjunction with WTSGetActiveConsoleSessionId and WTSFreeMemory.
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtsgetactiveconsolesessionid.asp
/// The WTSGetActiveConsoleSessionId function retrieves the
public static extern int WTSGetActiveConsoleSessionId();
int currentSessionId = WTSGetActiveConsoleSessionId(); kernel32
/// The WTSGetActiveConsoleSessionId function retrieves the Remote Desktop Services session that
private static extern uint WTSGetActiveConsoleSessionId();
/// Private Declare Function WTSGetActiveConsoleSessionId Lib "Kernel32.dll" Alias "WTSGetActiveConsoleSessionId" () As Int32
uint result = WTSGetActiveConsoleSessionId(); |