Desktop Functions: Smart Device Functions:
|
Search Results for "WTSQuerySessionInformation" in [All]wtsapi32
/// The WTSQuerySessionInformation function retrieves session information for the specified
/// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtsquerysessioninformation.asp
public static extern bool WTSQuerySessionInformation(
Private Declare Auto Function WTSQuerySessionInformation Lib "wtsapi32.dll" ( _
private static extern bool WTSQuerySessionInformation(IntPtr hServer, int sessionId, WTS_INFO_CLASS wtsInfoClass, out IntPtr ppBuffer, out int pBytesReturned);
if (WTSQuerySessionInformation(IntPtr.Zero, sessionId, WTS_INFO_CLASS.WTSUserName, out buffer, out strLen) && strLen > 1)
if (WTSQuerySessionInformation(IntPtr.Zero, sessionId, WTS_INFO_CLASS.WTSDomainName, out buffer, out strLen) && strLen > 1)
/// The WTSQuerySessionInformation function retrieves session information for the specified
/// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtsquerysessioninformation.asp
public static extern bool WTSQuerySessionInformation(
bool sessionInfo = WTSQuerySessionInformation( System.IntPtr.Zero, WTS_CURRENT_SESSION, WTSInfoClass.WTSSessionId, out buffer, out bytesReturned ); Enums3: WTSINFO
/// Contains values that indicate the type of session information to retrieve in a call to the <see cref="WTSQuerySessionInformation"/> function.
/// <see cref="WTSQuerySessionInformation"/> will always return a value of 0. 4: WTSInfoClass
kernel32
See WTSQuerySessionInformation |