阅读:968回复:2
为什么DeviceIoControl出现错误?
应用程序可以打开设备,但是执行DeviceIoControl却出现错误,
错误码是13d,代表了什么错误啊! Device found, handle open. DeviceIoControl call failed, code=13d 应用程序的代码如下: HANDLE hHello; hHello = OpenByInterface( &HelloClassGuid,0,&Error); if (hHello == INVALID_HANDLE_VALUE) { printf(\"ERROR opening device: %x returned from CreateFile\\n\", GetLastError()); exit(1); } else { printf(\"Device found, handle open.\\n\"); } DWORD nRet; BOOL status = DeviceIoControl(hHello,IOCTL_HELLO_TEST, NULL,0,NULL,0,&nRet,NULL); if (!status ) { printf(\"DeviceIoControl call failed, code=%x\\n\", GetLastError()); exit(1); } else printf(\"DeviceIoControl ok\\n\"); CloseHandle(hHello); |
|
沙发#
发布于:2005-03-10 09:44
系统无法在消息文件中为 %2 找到消息号为 0x%1 的消息文本。
|
|
板凳#
发布于:2005-03-10 10:37
应该如何解决呢?
系统无法在消息文件中为 %2 找到消息号为 0x%1 的消息文本。 |
|