Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "WTSQuerySessionInformation" in [All]

wtsapi32

.
Summary
.

/// 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 );

.
Documentation
[WTSQuerySessionInformation] on MSDN
.
Summary

kernel32

.

See WTSQuerySessionInformation

Enums

.
Summary
.

/// 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.

.
Summary

 
Access PInvoke.net directly from VS: