RtlRetrieveUshort

VOID
    RtlRetrieveUshort(

        IN PUSHORT  DestinationAddress,
        IN PUSHORT  SourceAddress
        );

RtlRetrieveUshort retrieves a USHORT value from the source address, avoiding alignment faults.

Parameters

DestinationAddress
Points to a USHORT-aligned location in which to store the value.
SourceAddress
Points to a location from which to retrieve the value.

Comments

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

See Also

RtlStoreUshort