win32ts.WTSDisconnectSession

WTSDisconnectSession(Server, SessionId, Wait)

Disconnects a session without logging it off

Parameters

Server : PyHANDLE

Handle to a terminal server

SessionId : int

Terminal services session id as returned by win32ts::WTSEnumerateSessions

Wait : boolean

Indicates whether operation should be performed asynchronously