Share via


NdisQueryMdl (Compact 7)

3/12/2014

This macro retrieves the buffer length, and optionally the base virtual address, from an MDL.

Syntax

NdisQueryMdl(_Mdl, _VirtualAddress, _Length, _Priority);

Parameters

  • _Mdl
    A pointer to an MDL.
  • _VirtualAddress
    A pointer to a caller-supplied variable in which this macro returns the base virtual address of the virtual address range that is described by the MDL. The base virtual address can be NULL for either of the following reasons:

    • System resources are low or exhausted and the _Priority parameter is set to LowPagePriority or NormalPagePriority.
    • System resources are exhausted and the _Priority parameter is set to HighPagePriority.
  • _Length
    A pointer to a caller-supplied variable in which this macro returns the length, in bytes, of the virtual address range that is described by the MDL.
  • _Priority
    A page priority value. For a list of the possible values for this parameter, see the Priority parameter of the MmGetSystemAddressForMdlSafe macro.

Return Value

None

Remarks

The NdisQueryMdl macro provides an MDL-based version of the NdisQueryBuffer function.

Requirements

Header

ndis.h

See Also

Reference

NDIS MDL Interface
NdisQueryBuffer