Share via


NdisZeroMemory (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisZeroMemory fills a block of memory with zeros.

Syntax

VOID NdisZeroMemory(
  _In_ PVOID Destination,
  _In_ ULONG Length
);

Parameters

  • Destination [in]
    Specifies the base virtual address of a block of memory.

  • Length [in]
    Specifies how many bytes to fill with zeros.

Return value

None

Remarks

NdisZeroMemory fills the specified range with zeros. The given Destination and Length must be a proper subrange of a caller-accessible memory range.

As long as the given range was allocated from nonpaged pool, the caller can be running at any IRQL. Otherwise, a caller must be running at IRQL < DISPATCH_LEVEL as, for example, when a caller clears a structure it allocated on the stack.

Requirements

Target platform

Desktop

Version

See NdisZeroMemory.

Header

Ndis.h (include Ndis.h)

IRQL

See Remarks section.

See also

NdisAllocateMemoryWithTag

NdisZeroMappedMemory

 

 

Send comments about this topic to Microsoft