ZeroMemory

The ZeroMemory function fills a block of memory with zeros.

VOID ZeroMemory(
  PVOID Destination, 
                 // address of block to fill with zeros
  DWORD Length   // size, in bytes, of block to fill with zeros
);
 

Parameters

Destination
Pointer to the starting address of the block of memory to fill with zeros.
Length
Specifies the size, in bytes, of the block of memory to fill with zeros.

Return Values

This function has no return value.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.

See Also

Memory Management Overview, Memory Management Functions, CopyMemory, CopyMemoryVlm, FillMemory, FillMemoryVlm, MoveMemory, MoveMemoryVlm, ZeroMemoryVlm