Windows Driver Kit: Kernel-Mode Driver Architecture
RtlUlongByteSwap
The RtlUlongByteSwap routine converts a ULONG from little-endian to big-endian, and vice versa.
ULONG FASTCALL
RtlUlongByteSwap(
IN ULONG Source
);
Parameters
- Source
- ULONG to convert.
Return Value
The converted ULONG value.
Comments
Use this function instead of ntohl or htonl.
Requirements
Versions: Not supported in Windows 98 or Windows Me.
Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.
See Also
RtlUlonglongByteSwap, RtlUshortByteSwap