PsRequestGetMaxWriteIoBufferSize

Returns the maximum size of the buffer that may be used with the PsRequestWriteIo function.

Syntax

uint64_t PsRequestGetMaxWriteIoBufferSize(
 [in] PPS_REQUEST pRequest
);

Parameters

PPS_REQUEST pRequest

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

Return value

If the function succeeds, it returns a non-zero value for the size of the buffer in bytes.

If it fails, it returns 0 (zero) due to one of the following possible reasons:

  • The pRequest parameter is NULL.
  • There is no assigned transport for the engine used for this request.
  • Remarks

    The maximum buffer size is subject to change depending on the debug protocol version.