Hi,
from the recent thread ‘IRP_MJ_CLEANUP is not called’ i learned that
it is possible that IRP_MJ_CLEANUP is called i a different process
context than IRP_MJ_CREATE, if handles are inherited.
If i wanted to be sure that both are called in the same process, is
there something i could do (maybe during IRP_MJ_CREATE) to make a
handle not inheritable?
Ciao,
poltrone
Well,
i think i asked the wrong question. It should have been:
How can i detect, that a handle will be inheritable while
processing IRP_MJ_CREATE (so that i could fail IRP_MJ_CREATE) ?
Ciao,
poltrone
Not really. Handle inheritance is left up to the application, not the
driver.
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of poltrone
Sent: Tuesday, July 26, 2005 1:49 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] making handles not inheritable?
Hi,
from the recent thread ‘IRP_MJ_CLEANUP is not called’ i learned that it
is possible that IRP_MJ_CLEANUP is called i a different process context
than IRP_MJ_CREATE, if handles are inherited.
If i wanted to be sure that both are called in the same process, is
there something i could do (maybe during IRP_MJ_CREATE) to make a handle
not inheritable?
Ciao,
poltrone
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Doesn’t matter. Inheritable or not the process can always use
DuplicateHandle to make a copy in another process.
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of poltrone
Sent: Tuesday, July 26, 2005 2:24 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] making handles not inheritable?
Well,
i think i asked the wrong question. It should have been:
How can i detect, that a handle will be inheritable while processing
IRP_MJ_CREATE (so that i could fail IRP_MJ_CREATE) ?
Ciao,
poltrone
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com