Function Reference


_WinAPI_SwapDWord

Converts a ULONG from little-endian to big-endian, and vice versa

#include <WinAPIConv.au3>
_WinAPI_SwapDWord ( $iValue )

Parameters

$iValue The ULONG value to convert.

Return Value

Returns the converted value.

See Also

Search RtlUlongByteSwap in MSDN Library.

Example

#include <WinAPIConv.au3>

Local $iValue = 0x11223344

ConsoleWrite('0x' & Hex($iValue) & @CRLF)
ConsoleWrite('0x' & Hex(_WinAPI_SwapDWord($iValue)) & @CRLF)