阅读:1082回复:1
这样会不会读出数据?
这样会不会读出数据?
if(connectionInfo->ConnectionStatus== DeviceConnected){ hRead=hHubDevice;//hHubDevice是指向USB设备的句炳,已成功列举出port结构 ReadLen=16; pinBuf = (char *)malloc(ReadLen); PULONG pOut = (PULONG) poutBuf; ULONG numLongs = WriteLen / sizeof( ULONG ); if (fRead && pinBuf) { success = ReadFile(hRead, pinBuf, ReadLen, &nBytesRead, NULL); MessageBox(pinBuf,NULL,MB_OK); } } |
|
沙发#
发布于:2002-10-28 12:28
如果driver里面的read handler的第一句话就是:return STATUS_SUCCESS,你会读到什么?!
|
|
|