// ntddstor.h
BOOLEAN DeviceDsmValidateOutputLength(
PDEVICE_DSM_DEFINITION Definition,
ULONG OutputLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The DeviceDsmValidateOutputLength function validates the length of an output buffer.
DefinitionPointer to a DEVICE_DSM_DEFINITION structure that defines the operation.
OutputLengthLength, in bytes, of the output buffer.
DeviceDsmValidateOutputLength returns TRUE when the length of the output buffer is valid; otherwise, it returns FALSE.
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.