NdisZeroMemory function

The NdisZeroMemory function fills a block of memory with zeros.

Syntax


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

Parameters

Destination [in]

The base virtual address of a block of memory.

Length [in]

The number of bytes to fill with zeros.

Return value

None

Remarks

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.

Requirements

Target platform

Desktop

Version

Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlZeroMemory instead.

Header

Ndis.h (include Ndis.h)

IRQL

See Remarks section

See also

NdisAllocateMemoryWithTagPriority
NdisZeroMappedMemory

 

 

Send comments about this topic to Microsoft

Show: