阅读:1029回复:2
为什么会这样?deviceiocontrol??
上面的应用程序:我写入字节:
为sLen个 dwWrite=1; //写入字节长度 dwRead=0; //读入字节长度 if( !DeviceIoControl( icdev, IOCTL_USB_MWWritePTL,sData, dwWrite, NULL, 0,&dwRead, NULL)) { err=GetLastError(); if(err=0x0000048f) } //在deviceiocontrol的处理中,我发现 inputlength=1 而outputlength=0; 这是为什么 ? ULONG ControlCode = IrpStack->Parameters.DeviceIoControl.IoControlCode; ULONG InputLength = IrpStack->Parameters.DeviceIoControl.InputBufferLength; ULONG OutputLength = IrpStack->Parameters.DeviceIoControl.OutputBufferLength; |
|
沙发#
发布于:2003-04-17 09:52
对不起大家,我犯了个错误!!!
看一下deviceiocontrol的函数原型发现: 的确应该是这样的!! |
|
板凳#
发布于:2003-04-21 11:02
晕倒
|
|
|