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
Download Visual Studio Add-In

Search Results for "WTSDisconnectSession" in [All]

wtsapi32

.
Summary
The WTSDisconnectSession function disconnects the logged-on user from the specified Terminal Services session without closing the session. If the user subsequently logs on to the same terminal server, the user is reconnected to the same session.
.

     static extern bool WTSDisconnectSession(IntPtr hServer, int sessionId, bool bWait);

.

     Private Shared Function WTSDisconnectSession(ByVal hServer As IntPtr, ByVal SessionId As Integer, ByVal bWait As Boolean) As Boolean

.

        RetVal = WTSDisconnectSession(ptrOpenedServer, SessionID, False)

.
Documentation
[WTSDisconnectSession] on MSDN

 
Access PInvoke.net directly from VS: