NdisZeroMemory macro (ndis.h)

The NdisZeroMemory function fills a block of memory with zeros.


void NdisZeroMemory(
  [in]  Destination,
  [in]  Length


[in] Destination

The base virtual address of a block of memory.

[in] Length

The number of bytes to fill with zeros.

Return value



NdisZeroMemory fills the specified range of memory 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.


Minimum supported client Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlZeroMemory instead.
Target Platform Desktop
Header ndis.h (include Ndis.h)
IRQL See Remarks section

See also