NdisRetrieveUlong macro (ndis.h)

The NdisRetrieveUlong function retrieves a ULONG value from the source address, avoiding alignment faults.

Syntax

void NdisRetrieveUlong(
   Destination,
   Source
);

Parameters

Destination

A pointer to a ULONG-aligned memory location in which to store the value.

Source

A pointer to a memory location from which to retrieve the ULONG value.

Return value

None

Remarks

The given DestinationAddress is assumed to be aligned on a ULONG boundary.

Callers of NdisRetrieveUlong can be running at any IRQL if the given addresses are in nonpaged pool. Otherwise, callers must be running at IRQL < DISPATCH_LEVEL.

Requirements

Requirement Value
Minimum supported client Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlRetrieveUlong instead.
Target Platform Desktop
Header ndis.h (include Ndis.h)
IRQL See Remarks section

See also

NdisStoreUlong