RtlFillMemoryUlong function (ntifs.h)

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

Syntax

void RtlFillMemoryUlong(
  [out] PVOID  Destination,
  [in]  SIZE_T Length,
  [in]  ULONG  Pattern
);

Parameters

[out] Destination

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

[in] Length

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

[in] 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

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

See also

RtlFillMemory

RtlFillMemoryUlonglong

RtlZeroMemory