NTSTATUS
TdiCopyBufferToMdl (
IN PVOID SourceBuffer,
IN ULONG SourceOffset,
IN ULONG SourceBytesToCopy,
IN PMDL DestinationMdlChain,
IN ULONG DestinationOffset,
OUT PULONG BytesCopied
);
TdiCopyBufferToMdl sets up an MDL describing a buffer.
Parameters
SourceBuffer
Points to the source buffer.
SourceOffset
Specifies the buffer offset, in bytes, at which TdiCopyBufferToMdl begins the copy.
SourceBytesToCopy
Specifies the number of bytes to copy from the buffer to the MDL.
DestinationMdlChain
Points to the destination MDL chain.
DestinationOffset
Specifies the MDL offset, in bytes, at which TdiCopyBufferToMdl begins the copy.
BytesCopied
Points to the caller–defined memory location to which TdiCopyBufferToMdl writes the number of bytes copied from the buffer to the MDL.
Return Value
TdiCopyBufferToMdl returns an NSTATUS value.