PsRequestWait

Waits for the request to complete.

Syntax

PULSE_STATUS PsRequestWait(
 [in] PPS_REQUEST pRequest
 [in] uint32_t Timeout
);

Parameters

PPS_REQUEST pRequest

An opaque handle to a request created by the PsRequestCreate function.

uint32_t Timeout

Specifies the timeout value in milliseconds.

Return value

If the function succeeds, the return value is PULSE_STATUS_SUCCESS.

If it fails, it returns one of the PULSE_STATUS values. Possible return codes include, but are not limited to, the following:

PULSE_STATUS_TIMEOUT
0xC0000007
Request packet transmission timed out.
PULSE_STATUS_INVALID_PARAMETER
0xC0000010
The pRequest parameter is NULL.

Remarks

Use this function to synchronously wait for the request completion that was posted with the PsRequestSubmit function. If the wait succeeds, use the PsRequestGetStatus function to retrieve the request result, given that the original request was bound to a Pulse API call.