3.7.4.1.31 RpcWinStationGetMachinePolicy (Opnum 62)

The RpcWinStationGetMachinePolicy method returns a copy of the terminal server machine policy to the caller.<208> The caller is not required to have any specific permission to call this method.

 BOOLEAN RpcWinStationGetMachinePolicy(
   [in] SERVER_HANDLE hServer,
   [in, out, size_is(bufferSize)] PBYTE pPolicy,
   [in, range(0, 0x8000 )] ULONG bufferSize
 );

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

pPolicy:  Pointer to a buffer to receive the machine policy. This buffer MUST be of type POLICY_TS_MACHINE.

bufferSize:  Size of the buffer, in bytes, pointed to by pPolicy. This size MUST NOT be less than sizeof(POLICY_TS_MACHINE).

Return Values:  Returns TRUE if the call succeeded, and FALSE if the method failed.

Return value/code

Description

0x01

TRUE

Successful completion.

0x00

FALSE

Method call failed.