NTSTATUS
TdiCopyMdlToBuffer (
IN PMDL SourceMdlChain,
IN ULONG SourceOffset,
IN PVOID DestinationBuffer,
IN ULONG DestinationOffset,
IN ULONG DestinationBufferSize,
OUT PULONG BytesCopied
);
TdiCopyMdlToBuffer copies a specified MDL to a buffer.
Parameters
SourceMdlChain
Points to the MDL chain to copy.
SourceOffset
Specifies the MDL offset, in bytes, at which TdiCopyMdlToBuffer begins the copy.
DestinationBuffer
Points to the destination buffer.
DestinationOffset
Specifies the buffer offset, in bytes, at which TdiCopyMdlToBuffer begins the copy.
DestinationBufferSize
Specifies the length, in bytes, of the buffer that DestinationBuffer indicates.
BytesCopied
Points to the caller–defined memory location to which TdiCopyMdlToBuffer writes the number of bytes copied from the MDL to the buffer.
Return Value
TdiCopyMdlToBuffer returns an NTSTATUS value.