Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 977 Bytes

File metadata and controls

47 lines (31 loc) · 977 Bytes

Home

Function name : WTSCloseServer

Group: Terminal Services - Library: wtsapi32


Closes an open handle to a terminal server.


Code examples:

How to enumerate sessions and processes on a specified terminal server

Declaration:

void WTSCloseServer(
	HANDLE hServer
);  

FoxPro declaration:

DECLARE WTSCloseServer IN Wtsapi32;
	INTEGER hServer  

Parameters:

hServer [in] Handle to a terminal server opened by a call to the WTSOpenServer function.


Return value:

This function does not return a value.


Comments:

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.