| 
 
贡献96 
飞刀26 FD
注册时间2017-11-25
在线时间3 小时积分17 
 
 扫一扫,手机访问本帖  | 
 
| 你好  我在使用WINCE6  来做IO控制时候发现 对IO 的写入没有问题 无法读取状态 wince 手册中 读取提示使用这个函数 DeviceIoControl (hGPIO,IOCTL_GPIO_GETBIT,pInBuffer,sizeof (pInBuffer),NULL,0,NULL,NULL);
 这个函数的返回的状态值在什么地方?
 
 另外 根据网上资料 我修改DeviceIoControl 为
 bool DeviceIoControl(
 IntPtr hDevice,
 UInt32 dwIoControlCode,
 UInt64[] lpInBuffer,
 Int32 nInBufferSize,
 IntPtr lpOutBuffer,
 Int32 nOutBufferSize,
 ref int lpBytesReturned,
 IntPtr lpOverlapped
 );
 在倒数第二个参数中返回 值 但 这个函数一样只能设置状态  读取时返回值一直为false, lpBytesReturned 返回值一直为 4
 请问这个是什么原因?
 
 
 
 
 | 
 |