#ifndef _WINSTA_H
// rev
/**
* The WinStationOpenServerW routine opens a handle to the specified Remote Desktop Session Host (RD Session Host) server.
*
* \param ServerName Pointer to a null-terminated string specifying the NetBIOS name of the RD Session Host server.
* \return BOOLEAN If the function succeeds, the return value is a handle to the specified server.
* \sa https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsopenserverw
*/
NTSYSAPI
HANDLE
NTAPI
WinStationOpenServerW(
_In_opt_ PCWSTR ServerName
);
View code on GitHubThis function is a wrapper over an RPC method documented in the [MS-TSTS] specification.