Freigeben über


FillMemory macro

Fills a block of memory with a specified value.

Syntax

void FillMemory(
  [out] PVOID  Destination,
  [in]  SIZE_T Length,
  [in]  BYTE   Fill
);

Parameters

  • Destination [out]
    A pointer to the starting address of the block of memory to fill.

  • Length [in]
    The size of the block of memory to fill, in bytes. This value must be less than the size of the Destination buffer.

  • Fill [in]
    The byte value with which to fill the memory block.

Return value

This macro has no return value.

Remarks

This macro is defined as the RtlFillMemory macro. For more information, see WinBase.h and Winnt.h.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinBase.h (include Windows.h)

See also

CopyMemory

Memory Management Functions

MoveMemory

SecureZeroMemory

ZeroMemory