Bewerken

Delen via


DeviceDsmGetOutputLength function (ntddstor.h)

The DeviceDsmGetOutputLength function gets the length, in bytes, of the output buffer for a data set management (DSM) operation.

Syntax

ULONG DeviceDsmGetOutputLength(
  PDEVICE_DSM_DEFINITION Definition,
  ULONG                  OutputBlockLength
);

Parameters

Definition

Pointer to a DEVICE_DSM_DEFINITION structure that defines the DSM operation.

OutputBlockLength

The length, in bytes, of the output block.

Return value

DeviceDsmGetOutputLength returns the total number of bytes in the output: the length of a DEVICE_DSM_OUTPUT structure plus the length of the output block, if any. It returns zero if the operation does not have output.

Remarks

See Data Set Management Overview for information on how to set up and process a DSM action.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803
Target Platform Universal
Header ntddstor.h

See also

Data Set Management Overview

DEVICE_DSM_DEFINITION

DEVICE_DSM_OUTPUT