NdisRetrieveUlong function

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

Syntax


VOID NdisRetrieveUlong(
  _In_ PULONG DestinationAddress,
  _In_ PULONG SourceAddress
);

Parameters

DestinationAddress [in]

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

SourceAddress [in]

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

Target platform

Version

Supported for existing drivers in NDIS 6.0 and later, but new drivers should use RtlRetrieveUlong instead.

Header

Ndis.h (include Ndis.h)

IRQL

See Remarks section

See also

NdisStoreUlong

 

 

Send comments about this topic to Microsoft

Show: