RtlFillMemory macro

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

Syntax

void RtlFillMemory(
   Destination,
   Length,
   Fill
);

Parameters

Destination

Datatype: void*. A pointer to the block of memory to be filled.

Length

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

Fill

Datatype: int. 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

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, 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