NdisZeroMemory

This function fills a block of memory with 0s.

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

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 0s.

Remarks

This function fills the specified range with 0s. The specified Destination and Length must be a proper subrange of a caller-accessible memory range.

As long as the specified 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 that it allocated on the stack.

See Also

NdisAllocateMemory, NdisZeroMappedMemory