FillMemory

The FillMemory function fills a block of memory with a specified value.

VOID FillMemory (
  PVOID Destination,  // pointer to block to fill
  DWORD Length,       // size, in bytes, of block to fill
  BYTE Fill           // the byte value with which to fill the block
);
 

Parameters

Destination
Pointer to the starting address of the block of memory to fill.
Length
Specifies the size, in bytes, of the block of memory to fill.
Fill
Specifies the byte value with which to fill the memory block.

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, MoveMemory, MoveMemoryVlm, ZeroMemory