Expand Minimize

RtlStoreUlongPtr macro

The RtlStoreUlongPtr macro stores a specified ULONG_PTR value at a specified memory location, avoiding memory alignment faults.

Syntax


VOID RtlStoreUlongPtr(
  [out]  PULONG_PTR Address,
  [in]   ULONG_PTR  Value
);

Parameters

Address [out]

A pointer to a location in which to store the ULONG_PTR value.

Value [in]

Specifies the ULONG_PTR value to be stored.

Return value

None

Remarks

RtlStoreUlongPtr avoids memory alignment faults. If the value of Address is not aligned to the storage requirements of a ULONG_PTR, RtlStoreUlongPtr stores the bytes of Value beginning at the memory location (PUCHAR)Address.

RtlStoreUlongPtr runs at any IRQL if Address points to nonpaged pool; otherwise it must run at IRQL <= APC_LEVEL.

Requirements

Target platform

Desktop

Version

Available in Windows 2000 and later versions of Windows.

Header

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

IRQL

Any level (See Remarks section)

See also

RtlStoreUlong
RtlStoreUlonglong

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft