WTSCloseServer function
Closes an open handle to a Remote Desktop Session Host (RD Session Host) server.
Syntax
VOID WINAPI WTSCloseServer( _In_ HANDLE hServer );
Parameters
- hServer [in]
-
A handle to an RD Session Host server opened by a call to the WTSOpenServer or WTSOpenServerEx function.
Do not pass WTS_CURRENT_SERVER_HANDLE for this parameter.
Return value
This function does not return a value.
Remarks
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 or WTSOpenServerEx function.
After the handle has been closed, it cannot be used with any other WTS APIs.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012