RtlFillMemoryUlong function

The RtlFillMemoryUlong routine fills the specified range of memory with one or more repetitions of a ULONG value.

Syntax

void RtlFillMemoryUlong(
  PVOID  Destination,
  SIZE_T Length,
  ULONG  Pattern
);

Parameters

Destination

Pointer to a block of memory to be filled. Must be ULONG-aligned.

Length

Length in bytes of the memory to fill. Must be a multiple of sizeof(ULONG). (Note: SIZE_T is defined in basetsd.h.)

Pattern

ULONG value with which to fill the memory block.

Return Value

None

Remarks

If the block of memory at Destination is nonpaged, the caller can be running at any IRQL. Otherwise, callers of RtlFillMemoryUlong must be running at IRQL < DISPATCH_LEVEL.

For more information about managing buffered data and initializing driver-allocated buffers, see Buffered Data and Buffer Initialization.

Requirements

   
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL See Remarks section.

See Also

RtlFillMemory

RtlFillMemoryUlonglong

RtlZeroMemory