DeviceDsmValidateOutputLength - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

BOOLEAN DeviceDsmValidateOutputLength(
  PDEVICE_DSM_DEFINITION Definition,
  ULONG                  OutputLength
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddstor-devicedsmvalidateoutputlength)

DeviceDsmValidateOutputLength function

Description

The DeviceDsmValidateOutputLength function validates the length of an output buffer.

Parameters

Definition

Pointer to a DEVICE_DSM_DEFINITION structure that defines the operation.

OutputLength

Length, in bytes, of the output buffer.

Return value

DeviceDsmValidateOutputLength returns TRUE when the length of the output buffer is valid; otherwise, it returns FALSE.

Remarks

The output buffer includes the DEVICE_DSM_OUTPUT structure plus the output block that immediately follows it, if any.

See Data Set Management Overview for more details on handling a DSM.

See also

Data Set Management Overview

DEVICE_DSM_DEFINITION

DEVICE_DSM_OUTPUT