Re: adding another ioctl
- From: "Volodymyr Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 13:29:52 +0100
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
.
- Prev by Date: Re: Copying a kernel routine
- Next by Date: Re: Copying a kernel routine
- Previous by thread: Re: Differences between WDK packages
- Index(es):
Relevant Pages
|
Loading