RtlFillMemory routine

The RtlFillMemory routine fills a block of memory with the specified fill value.

Syntax


VOID RtlFillMemory(
  _Out_ VOID UNALIGNED *Destination,
  _In_  SIZE_T         Length,
  _In_  UCHAR          Fill
);

Parameters

Destination [out]

A pointer to the block of memory to be filled.

Length [in]

The number of bytes in the block of memory to be filled.

Fill [in]

The value to fill the destination memory block with. This value is copied to every byte in the memory block that is defined by Destination and Length.

Return value

None

Remarks

Callers of RtlFillMemory can be running at any IRQL if the destination memory block is in nonpaged system memory. Otherwise, the caller must be running at IRQL <= APC_LEVEL.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtDll.lib (user mode);
NtosKrnl.lib (kernel mode)

DLL

NtDll.dll (user mode);
NtosKrnl.exe (kernel mode)

IRQL

Any level (See Remarks section)

See also

RtlZeroMemory

 

 

Send comments about this topic to Microsoft

Show: