版块
论坛
喜欢
话题
应用
搜索
登录
注册
hummingbird的个人空间
访问量
0
新鲜事
帖子
资料
http://bbs3.driverdevelop.com/index.php?m=space&uid=66909
为何我的DEVICEIOCONTROL总是说我参数错?我哪儿错了
int WritePort(UCHAR Port,UCHAR Value){ DWORD dwResult = 0;UCHAR PV[2] = {Port,Value};if (!DeviceIoControl(hDevice,EVENT_WRITEPORT,...
全文
回复
(
6
)
2004-01-07 11:48
来自版块 -
ABC初学者
◆
◆
表情
告诉我的粉丝
提 交
Always!978
:
第一个帖子的参数也不对吧,&PV?PV?
(2004-01-14 10:17)
回复
hummingbird
:
啊,我真是猪头,我把DRV下DEVICE函数对应SWITCH的操作给删了,原来会这样报错。。。。。
(2004-01-07 15:07)
回复
y5318
:
倒数第二个参数好像有问题,(摘字msdn) If lpOverlapped is NULL, lpBytesReturned cannot be NULL. Even when an operation produces no output data, and lpOutBuf...
(2004-01-07 13:28)
回复
hummingbird
:
甚至我用 if (!DeviceIoControl(hDevice, EVENT_CLOSE, NULL, 0 NULL, 0, &dwResult, NULL) ) return GetLastError(); GetLastError()也是...
(2004-01-07 12:31)
回复
hummingbird
:
试过了,还试过2*sizeof(UCHAR),感觉不象只是单纯 的参数错那么简单,是不是整个驱动程序哪有问题
(2004-01-07 12:16)
回复
computer197605
:
将 2 改成strlen(pv) 8试试
(2004-01-07 12:08)
回复
hummingbird
加关注
写私信
0
关注
0
粉丝
17
帖子
返回顶部