3.7.4.1.2 RpcWinStationCloseServer (Opnum 1)

The RpcWinStationCloseServer method closes the server handle for WinStation APIs. No special permissions are required to call this method.

 BOOLEAN RpcWinStationCloseServer(
   [in] SERVER_HANDLE hServer,
   [out] DWORD* pResult
 );

hServer: Handle to the server object. This is of type SERVER_HANDLE. The hServer MUST be returned from a previous call to RpcWinStationOpenServer.

pResult: If the call was successful, this parameter is STATUS_SUCCESS (0x00000000), as specified in [MS-ERREF]; otherwise, it MUST be an implementation-specific negative value.

Return Values:  Returns TRUE if the call succeeded, or FALSE if the call failed. On failure, pResult indicates the failure status code.

Return value/code

Description

0x01

TRUE

Successful completion.

0x00

FALSE

Method call failed.