Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 08:49:03 -0500
"Thierry" <yarglah@xxxxxxxxxxx> wrote in message
news:45656b6e$0$2291$426a74cc@xxxxxxxxxxxxxxx
"Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news: ufFl64qDHHA.3396@xxxxxxxxxxxxxxxxxxxxxxx
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
Ok, so the CREATE/CLOSE I see are from the FS ?
I use shared memory between user and kernel
(http://www.osronline.com/article.cfm?id=39) and I have to unmap the
buffer when the app. gone... I can't rely on a "release" IOCTL because
app can crash or be killed by user so do you see the best way I can
unmap/clean without IRP_MJ_CLEANUP/CLOSE ?
Welcome to one of the many reasons not to use shared memory. Instead of
shared memory use an IOCTL, to communicate, then you will recieve a cancel
for the IRP to be notified. Note: while it still has all the other
problems (besides process termination notification) you can use an IOCTL to
fake shared memory. The IOCTL is defined with METHOD_OUT_DIRECT and the
buffer passed in is "the shared memory region" you use to communicate.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
.
- Follow-Ups:
- Re: Don't receive IRP_MJ_CREATE on a CreateFile
- From: Thierry Murail
- 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
- 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: Thierry
- Don't receive IRP_MJ_CREATE on a CreateFile
- Prev by Date: Re: virtual network interface over PCI
- Next by Date: Re: SHaring buffer from kernel to applications-help!!!
- 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
|