// ntddstor.h
ULONG DeviceDsmGetOutputLength(
PDEVICE_DSM_DEFINITION Definition,
ULONG OutputBlockLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmGetOutputLength function gets the length, in bytes, of the output buffer for a data set management (DSM) operation.
DefinitionPointer to a DEVICE_DSM_DEFINITION structure that defines the DSM operation.
OutputBlockLengthThe length, in bytes, of the output block.
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.
See Data Set Management Overview for information on how to set up and process a DSM action.