Re: adding another ioctl



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






.



Relevant Pages

  • Re: BLKFLSBUF failed???
    ... What is causing this and how do I fix it? ... Lack of support for that ioctl is "causing" it (horrible choice of word ...
    (alt.os.linux)
  • Re: SetCommState() fails with "A device attached to the system is not functioning"
    ... IOCTL codes required. ... If it would fail to support one of these, ... It sounds like the fix is not in SetCommState, but in the device driver ... The driver is the standard usbser.sys (USB serial port driver ...
    (microsoft.public.vc.mfc)
  • Re: adding another ioctl
    ... Modified the * .h file to add new IOCTL. ... when I run the application I see "unrecognised IOCTL" in debugview window. ... The drivercode and the application code is sioctl. ...
    (microsoft.public.development.device.drivers)
  • Re: RFC: ATA to CAM integration patch
    ... cdrecord: Inappropriate ioctl for device. ... Cannot open SCSI driver. ... this driver and/or drive does not support cdda reading. ...
    (freebsd-current)
  • Re: Unique identifier for a Windows CE device.
    ... > support for this IOCTL is optional and hence your device may not support ... > Windows CE Security ... >> Is there a way to determine a unique identifier for a ...
    (microsoft.public.windowsce.app.development)