阅读:1063回复:2
InputReport是什么东西?是报告描述符吗?
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 ); } |
|
沙发#
发布于:2005-03-01 15:08
是输入报告啊 !!~~
|
|
板凳#
发布于:2005-03-01 16:43
自定义的存储区,用来存储从设备读到的数据的
你的程序可不可以传上来看看,我也有个类似的,但是调试的时候总是通不过 [编辑 - 3/1/05 by grimreaper] |
|