Platform SDK: Memory

FillMemory

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

VOID FillMemory (
  PVOID Destination,  // memory block
  SIZE_T Length,      // size of memory block
  BYTE Fill           // fill value
);

Parameters

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

Return Values

This function has no return value.

MAPI: For more information, see Syntax and Limitations for Win32 Functions Useful in MAPI Development.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winbase.h; include Windows.h.

See Also

Memory Management Overview, Memory Management Functions, CopyMemory, MoveMemory, ZeroMemory