Extracts a number of bits from a DWORD (32-bit) value
#include <WinAPIConv.au3>
_WinAPI_LongMid ( $iValue, $iStart, $iCount )
$iValue | 32-bit value. |
$iStart | The bit position to start. (0 - first bit) |
$iCount | The number of bits to extract. |
This function does not check the parameters for valid values. If values is incorrect, the function may return
an unexpected results.
#include <WinAPIConv.au3>
Local $iValue = 0x00FA0000
ConsoleWrite('0x' & Hex(_WinAPI_LongMid($iValue, 16, 4)) & @CRLF)
ConsoleWrite('0x' & Hex(_WinAPI_LongMid($iValue, 20, 4)) & @CRLF)