Expand Minimize

RtlFillMemoryUlong routine

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

Destination [out]

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

Length [in]

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

Pattern [in]

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

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

See Remarks section.

See also

RtlFillMemory
RtlFillMemoryUlonglong
RtlZeroMemory

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft