RtlRetrieveUlong macro (wdm.h)

The RtlRetrieveUlong macro retrieves a ULONG value from the source address, avoiding alignment faults. The destination address is assumed to be aligned.

Syntax

void RtlRetrieveUlong(
  [out]  DEST_ADDRESS,
  [in]   SRC_ADDRESS
);

Parameters

[out] DEST_ADDRESS

Pointer to a ULONG-aligned location in which to store the ULONG value.

[in] SRC_ADDRESS

Pointer to a location from which to retrieve the ULONG value.

Return value

None

Remarks

Callers of RtlRetrieveUlong can be running at any IRQL if the given addresses are in nonpaged pool. Otherwise, the caller must be running at IRQL <= APC_LEVEL.

Requirements

Requirement Value
Minimum supported client Windows 2000
Header wdm.h
IRQL See Remarks