Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 19:19:44 -0800
if there is a filesystem mounted on the driver, you will not see create
irps, the FS will. you will only see absolute reads/writes to the
disk/volume
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"Thierry Murail" <yarglah@xxxxxxxxxxx> wrote in message
news:45640757$0$1993$426a74cc@xxxxxxxxxxxxxxx
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: Thierry
- 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
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Thierry Murail
- Don't receive IRP_MJ_CREATE on a CreateFile
- Prev by Date: Re: How do I edit REG_MULTI_SZ in the registry?
- Next by Date: Re: UMDF and METHOD_NEITHER
- 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
|