Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MmGetMdlByteCount macro

The MmGetMdlByteCount macro returns the length, in bytes, of the buffer described by the specified MDL.

Syntax


ULONG MmGetMdlByteCount(
  [in] PMDL Mdl
);

Parameters

Mdl [in]

A pointer to an MDL structure that describes the layout of a virtual memory buffer in physical memory. For more information, see Using MDLs.

Return value

MmGetMdlByteCount returns the length, in bytes, of the buffer described by Mdl.

Remarks

Callers of MmGetMdlByteCount can be running at any IRQL. Usually, callers are running at IRQL <= DISPATCH_LEVEL.

Requirements

Target platform

Desktop

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level (see Remarks section)

DDI compliance rules

MdlAfterReqCompletedIntIoctlA, MdlAfterReqCompletedIoctlA, MdlAfterReqCompletedReadA, MdlAfterReqCompletedWriteA

See also

MDL
MmGetMdlByteOffset

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft