Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
 RtlUlongByteSwap

  Switch on low bandwidth view
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 on Microsoft Windows 98 or Windows Me.

Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.

See Also

RtlUlonglongByteSwap, RtlUshortByteSwap


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker