Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Thierry Murail <yarglah@xxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 09:16:23 +0100
Gianluca Varenni wrote:
I use CreateFile on my device to DeviceIoControl on it.
But AFAI understand I should receive IRP_MJ_CREATE on CreateFile and
CLEANUP
& CLOSE on CloseHandle (am I right ?) but my driver does not receive
these events. But it receive these from other time (maybe explorer.exe).
How do you know that you are receiving IRP_MJ_CREATE requests from
explorer.exe?
It's a DEVICE_DISK and I supposed explorer try to access it.
In fact it's "System" that make these IRP every 5 minutes (IrpTracker is my
friend :-)
What kind of driver are you working on?
FILE_DEVICE_DISK (based on Ramdisk sample)
You are saying that you are calling CreateFile on your device (e.g.
\\.\Global\MyDriver), and you don't see the corresponding MJ_CREATE
request. Is createfile succeeding?
Yes, and Ioctl requests too.
I CreateFile on the symlink created by the driver, (the drive letter \\
\H:). Another user program ("consumer") just read/write on the device and
there's also no IRP_MJ_CREATE/CLEANUP/CLOSE.
.
- Follow-Ups:
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Doron Holan [MS]
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Thomas J. Gritzan
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- References:
- Don't receive IRP_MJ_CREATE on a CreateFile
- From: Thierry Murail
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Gianluca Varenni
- Don't receive IRP_MJ_CREATE on a CreateFile
- Prev by Date: Self signing a UniDRV based driver
- Next by Date: Re: PendingReturned and a subsidiary IRP
- Previous by thread: Re: Don't receive IRP_MJ_CREATE on a CreateFile
- Next by thread: Re: Don't receive IRP_MJ_CREATE on a CreateFile
- Index(es):
Relevant Pages
|