czcty
驱动牛犊
驱动牛犊
  • 注册日期2004-11-04
  • 最后登录2006-11-08
  • 粉丝0
  • 关注0
  • 积分100分
  • 威望11点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
阅读:1063回复:2

InputReport是什么东西?是报告描述符吗?

楼主#
更多 发布于:2005-03-01 09:25
Result = ReadFile \\
(ReadHandle, \\
InputReport, \\
Capabilities.InputReportByteLength, \\
&BytesRead, \\
NULL);




ActualBytesRead = BytesRead;

if (Result == 0)
{
//The ReadFile failed, so close the handle, display a message,
//and set DeviceDetected to FALSE so the next attempt will look for the device.
CloseHandle(ReadHandle);
DisplayData(\"Can\'t read from device\");
DeviceDetected = FALSE;
}else{
  DisplayData(\"ReadFile 成功!\");
ULONG aa;
for(aa=0;aa<Capabilities.InputReportByteLength;aa++){//Capabilities.InputReportByteLength==4
    char x=InputReport[aa] ;
CString ms;
ms.Format(\"%08X\",x);
DisplayData( ms );
}
kY1NgmAn
驱动牛犊
驱动牛犊
  • 注册日期2003-06-16
  • 最后登录2009-11-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望1点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-03-01 15:08
是输入报告啊 !!~~
grimreaper
驱动牛犊
驱动牛犊
  • 注册日期2004-10-13
  • 最后登录2006-08-25
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望1点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-03-01 16:43
自定义的存储区,用来存储从设备读到的数据的

你的程序可不可以传上来看看,我也有个类似的,但是调试的时候总是通不过

[编辑 -  3/1/05 by  grimreaper]
游客

返回顶部