I’ve been working on a very simple KMDF driver that just has open and
close, no read, write or IOCTL. When I try to open the device I always
get STATUS_INVALID_DEVICE_REQUEST and it never hits the EvtFileCreate
callback in the driver. Any suggestions on the problem or ways to debug
it would be appreciated, this is one I have not seen before.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Odd. Which device class are you in? any filters?
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, January 15, 2013 1:01 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] CreateFile and STATUS_INVALID_DEVICE_REQUEST
I’ve been working on a very simple KMDF driver that just has open and close, no read, write or IOCTL. When I try to open the device I always get STATUS_INVALID_DEVICE_REQUEST and it never hits the EvtFileCreate callback in the driver. Any suggestions on the problem or ways to debug it would be appreciated, this is one I have not seen before.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
NTDEV is sponsored by OSR
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Doron,
No filters this is my own unique device. Right now my INX file
specifies System for the class and I make the device type unique. I
just configure an EvtFileCreate and an EvtFileClose, then create the
device and the symbolic link.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“Doron Holan” wrote in message
news:xxxxx@ntdev:
> Odd. Which device class are you in? any filters?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Tuesday, January 15, 2013 1:01 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] CreateFile and STATUS_INVALID_DEVICE_REQUEST
>
> I’ve been working on a very simple KMDF driver that just has open and close, no read, write or IOCTL. When I try to open the device I always get STATUS_INVALID_DEVICE_REQUEST and it never hits the EvtFileCreate callback in the driver. Any suggestions on the problem or ways to debug it would be appreciated, this is one I have not seen before.
>
>
> Don Burn
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
See if running elevated helps, if not, you might need to step through the io manager open routines.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, January 15, 2013 1:21 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] CreateFile and STATUS_INVALID_DEVICE_REQUEST
Doron,
No filters this is my own unique device. Right now my INX file specifies System for the class and I make the device type unique. I just configure an EvtFileCreate and an EvtFileClose, then create the device and the symbolic link.
Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
“Doron Holan” wrote in message
news:xxxxx@ntdev:
> Odd. Which device class are you in? any filters?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Tuesday, January 15, 2013 1:01 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] CreateFile and STATUS_INVALID_DEVICE_REQUEST
>
> I’ve been working on a very simple KMDF driver that just has open and close, no read, write or IOCTL. When I try to open the device I always get STATUS_INVALID_DEVICE_REQUEST and it never hits the EvtFileCreate callback in the driver. Any suggestions on the problem or ways to debug it would be appreciated, this is one I have not seen before.
>
>
> Don Burn
> Windows Filesystem and Driver Consulting
> Website: http://www.windrvr.com
> Blog: http://msmvps.com/blogs/WinDrvr
>
>
>
>
> —
> NTDEV is sponsored by OSR
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
—
NTDEV is sponsored by OSR
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Is DO_DEVICE_INITIALIZING set in Flags, by any chance? I believe KMDF is supposed to reset it, though.