Bewerken

Delen via


RtlUlonglongByteSwap macro (wdm.h)

The RtlUlonglongByteSwap routine reverses the ordering of the eight bytes in a 64-bit unsigned integer value.

Syntax

NTSYSAPI ULONGLONG RtlUlonglongByteSwap(
  ULONGLONG Source
);

Parameters

Source

A ULONGLONG value to convert to a byte-swapped version.

Return value

The byte-swapped version of the input parameter value.

Remarks

For example, if the Source parameter value is 0x0123456789abcdef, the routine returns 0xefcdab8967452301.

A typical use of this routine is to convert a ULONGLONG value from little-endian byte format to big-endian byte format, and vice versa.

To reverse the ordering of bytes in a USHORT value, use the RtlUshortByteSwap routine. To reverse ordering of bytes in a ULONG value, use the RtlUlongByteSwap routine.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

RtlUlongByteSwap

RtlUshortByteSwap