- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制 - 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题 - 添加鼠标路径录制器、硬件测试脚本等工具 - 更新多项配置默认值 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
|
||
<title>HKMGetDataUnitInt</title>
|
||
<link rel="stylesheet" type="text/css" href="css/help.css">
|
||
</head>
|
||
<body>
|
||
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="ts">
|
||
<tr>
|
||
<th width="50">名称</th>
|
||
<td class="name">HKMGetDataUnitInt 获得数据单元整数值</td>
|
||
</tr>
|
||
<tr>
|
||
<th>功能</th>
|
||
<td>获得数据数组的元素的整数值。相关函数:<a href="HKMSearchDeviceAll.html">HKMSearchDeviceAll</a>、<a href="HKMCheckPressedKeys.html">HKMCheckPressedKeys</a>。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>参数</th>
|
||
<td class="canshu">参数1 数据地址:无类型指针。使用HKMSearchDeviceAll、HKMCheckPressedKeys可以创建它。<br />
|
||
参数2 序号:无符号32位整型数。在数组中元素的序号,可以叫数组元素下标,第一个元素序号是0。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>返回值</th>
|
||
<td class="fanhui">无符号32位整型数。成功返回数据数组的整数值,失败返回0。</td>
|
||
</tr>
|
||
<tr>
|
||
<th>C语言<br />例子</th>
|
||
<td class="lizi">LPDWORD pDevId;<br />
|
||
DWORD dwCount,i;<br />
|
||
pDevId=HKMSearchDeviceAll(0x1234,0xABCD,0);<br />
|
||
if(pDevId==NULL)<br />
|
||
{<br />
|
||
printf("查找设备失败\n");<br />
|
||
return 0;<br />
|
||
}<br />
|
||
dwCount=HKMGetDataCount(pDevId);<br />
|
||
printf("找到的设备数量:%u\n",dwCount);<br />
|
||
for(i=0;i<dwCount;i++)<br />
|
||
{<br />
|
||
printf("%08X\n",HKMGetDataUnitInt(pDevId,i));<br />
|
||
}<br />
|
||
HKMFreeData(pDevId);</td>
|
||
</tr>
|
||
</table>
|
||
</body>
|
||
</html> |