Group: Terminal Services - Library: wtsapi32
How to enumerate sessions and processes on a specified terminal server
void WTSCloseServer(
HANDLE hServer
); DECLARE WTSCloseServer IN Wtsapi32;
INTEGER hServer hServer [in] Handle to a terminal server opened by a call to the WTSOpenServer function.
This function does not return a value.
Call the WTSCloseServer function as part of your program"s clean-up routine to close all the server handles opened by calls to the WTSOpenServer function.
Home