Dan ,
I am getting confused …
pls elaborate on the subject that -
where should i keep this IRP - if i use system q or if i use device maintained q?
how can i keep it pendig for the period untill the application exits or gets terminated abnormally ? is it permitted in NT ??
regards…
– Subodh
----- Original Message -----
From: Dan Partelly
To: NT Developers Interest List
Sent: Tuesday, September 03, 2002 8:36 PM
Subject: [ntdev] Re: Help on MDLGetSystemAddressForMDLSafe and abnormal app termination…
Nah , sorry I was thinking to another thing. IOCTLs IRPs which are built throgh system provided routines are already enqueued into thread IO queue. If the thread dies, exactly like Thomas Divine said, the OS will begin
some rundown operations, which include canceling all thread IO. You should provide cancel routines.
----- Original Message -----
From: Subodh Gupta
To: NT Developers Interest List
Sent: Tuesday, September 03, 2002 5:46 PM
Subject: [ntdev] Re: Help on MDLGetSystemAddressForMDLSafe and abnormal app termination…
Hi Dan,
Do you mean to say i need to write StartIo and Cancel routines and need to implement some internal device queue or use system queues to make it work ???.
Pls elaborate in much Detail…
– Subodh
----- Original Message -----
From: Dan Partelly
To: NT Developers Interest List
Sent: Tuesday, September 03, 2002 7:17 PM
Subject: [ntdev] Re: Help on MDLGetSystemAddressForMDLSafe and abnormal app termination…
Enqueue the IRP in the thread IRP queue ?
----- Original Message -----
From: Subodh Gupta
To: NT Developers Interest List
Sent: Tuesday, September 03, 2002 4:32 PM
Subject: [ntdev] Help on MDLGetSystemAddressForMDLSafe and abnormal app termination…
Hi all,
I am writing an IP filter hook driver, and i am having troubles when i send a lage buffer to the driver via a custom IOCTL which uses METHOD_IN_DIRECT.
the driver call MmGetSystemAdressForMDLSafe to directly write the captured IP packets in this buffer.
But when the application abnormally terminates it remains in the memory (as task manager shows it still running…). The driver is not sent any IRP_MJ_CLEANUP or IRP_MJ_CLOSE . In this routiones i have added MmUnmapLocked pages call in __try and __except blocks.
but they dont get called…
DDK says that NT calls this routines if application abnormally terminates but why they dont get called in this case ??
Any help is appreciated…
—Subodh
You are currently subscribed to ntdev as: xxxxx@rdsor.ro
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@leadbyte.com
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@rdsor.ro
To unsubscribe send a blank email to %%email.unsub%%
You are currently subscribed to ntdev as: xxxxx@leadbyte.com
To unsubscribe send a blank email to %%email.unsub%%