#ifndef _WINSTA_H
// rev
/**
* The WinStationCloseServer routine closes an open handle to a Remote Desktop Session Host (RD Session Host) server.
*
* \param ServerHandle A handle to an RD Session Host server opened by a call to the WinStationOpenServerW function.
* \return BOOLEAN Nonzero if the function succeeds, or zero otherwise. To get extended error information, call GetLastError.
* \sa https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtscloseserver
*/
NTSYSAPI
BOOLEAN
NTAPI
WinStationCloseServer(
_In_ HANDLE ServerHandle
);
View code on GitHubThis function is a wrapper over an RPC method documented in the [MS-TSTS] specification.