Re: adding another ioctl
- From: qwert <qwert@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 22:09:01 -0800
Thanks a lot.
I cleaned the registry and tried it again.Its working now.I think it was
taking some old code.
"Volodymyr Shcherbyna" wrote:
Generally, if everything was done correctly, the changes you described.
should be enough.
Check your code against this manual,
http://codeproject.com/KB/system/driverdev2.aspx and if it does not help,
come back to us with more details.
--
Volodymyr
NG tips:
http://msmvps.com/blogs/v_scherbina/pages/microsoft-newsgroups-tips.aspx
"qwert" <qwert@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FAB7CD35-604F-493E-97DD-03AC5502B1BC@xxxxxxxxxxxxxxxx
I wanted to support an additional IOCTL in my driver.
I have done the following steps:
1. I have called the Deviceiocontrol with the new IOCTL in the application
2. Modified the * .h file to add new IOCTL. following is the added bit.
#define IOCTL_SIOCTL_TRIAL_COMMAND \
CTL_CODE( SIOCTL_TYPE, 0x904, METHOD_BUFFERED , FILE_ANY_ACCESS )
3.I have supported this IOCTL in my Dispatch routine.
when I run the application I see "unrecognised IOCTL" in debugview window.
I get an application errror:1(Error_Invalid_function )
Let me know if there are any other changes to be done in the code.anyother
support??
I think I have done all the steps.But it is not hitting the control
codeinstead it goes to the default case where "unrecognised IOCTL" appears
The drivercode and the application code is sioctl(in wdk).
Thanks in advance
- Next by Date: User-land Callback From Driver
- Next by thread: User-land Callback From Driver
- Index(es):
Relevant Pages
|