Export (0) Print
Expand All
Expand Minimize

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 Vista

Minimum supported server

Windows Server 2003

Header

Wtsapi32.h

Library

Wtsapi32.lib

DLL

Wtsapi32.dll

See also

WTSOpenServer

 

 

Show:
© 2014 Microsoft