3.7.4.1.29 RpcWinStationCloseServerEx (Opnum 60)
The RpcWinStationCloseServerEx method closes the server handle for WinStation APIs. The call to this method MUST be serialized if there are multiple threads running; otherwise, the behavior of this function is unknown. No special permissions are required to call this method.
-
BOOLEAN RpcWinStationCloseServerEx( [in, out] SERVER_HANDLE* phServer, [out] DWORD* pResult );
phServer: Pointer to a variable that is a handle to the server. The variable is of type SERVER_HANDLE. The handle MUST be returned from a previous call to RpcWinStationOpenServer. On return from this method, *phServer is set to NULL.
pResult: If the call was successful, this parameter MUST be STATUS_SUCCESS (0x00000000); otherwise, it MUST be an implementation-specific negative value.
Return Values: Returns TRUE if the call succeeded, and 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.