函数参考


_WinAPI_LongMid

Extracts a number of bits from a DWORD (32-bit) value.

#Include <WinAPIEx.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.

相关

详情参考

None

示例/演示


#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Value = 0x00FA0000

ConsoleWrite('0x' & Hex(_WinAPI_LongMid($Value, 16, 4)) & @CR)
ConsoleWrite('0x' & Hex(_WinAPI_LongMid($Value, 20, 4)) & @CR)