|
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.TerminalServicesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("Kernel32.dll")]
public static int WTSGetActiveConsoleSessionId()
<DllImportAttribute("Kernel32.dll">]
Public Shared Function WTSGetActiveConsoleSessionId As Integer
public:
[DllImportAttribute(L"Kernel32.dll")]
static int WTSGetActiveConsoleSessionId()
[<DllImportAttribute("Kernel32.dll")>]
static member WTSGetActiveConsoleSessionId : unit -> int
Return Value
Int32If the function succeeds, the return value is nonzero. To determine whether the
function adjusted all of the specified privileges, call
.
See Also