Click or drag to resize
Xcalibur Systems LLC Logo

TerminalServicesHelperWTSGetActiveConsoleSessionId Method

Retrieves the session identifier of the console session. The console session is the session that is currently attached to the physical console. Note that it is not necessary that Remote Desktop Services be running for this function to succeed.

WTSFreeMemory function


Namespace: Xcalibur.NativeMethods.V2.TerminalServices
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("Kernel32.dll")]
public static int WTSGetActiveConsoleSessionId()

Return Value

Int32
If the function succeeds, the return value is nonzero. To determine whether the function adjusted all of the specified privileges, call .
See Also