共用方式為


NdisZeroMemory

This function fills a block of memory with 0s.

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.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Ndis.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

NdisAllocateMemory, NdisZeroMappedMemory

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.