Previous Next

NdisZeroMemory

NdisZeroMemory fills a block of memory with zeros.

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

Parameters

Destination
Specifies the base virtual address of a block of memory.
Length
Specifies how many bytes to fill with zeros.

Headers

Declared in Ndis.h. Include Ndis.h.

Comments

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.

See Also

NdisAllocateMemoryWithTag, NdisZeroMappedMemory