Bewerken

Delen via


DeviceDsmValidateOutputLength function (ntddstor.h)

The DeviceDsmValidateOutputLength function validates the length of an output buffer.

Syntax

BOOLEAN DeviceDsmValidateOutputLength(
  PDEVICE_DSM_DEFINITION Definition,
  ULONG                  OutputLength
);

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.

Requirements

Requirement Value
Header ntddstor.h

See also

Data Set Management Overview

DEVICE_DSM_DEFINITION

DEVICE_DSM_OUTPUT