Hi,
I send a custom IOCTL from an application to a driver
using DeviceIoControl. In the driver I mark the
corresponding IRP as pending. Before doing that I set
the cancel routine using IoSetConcelRoutine.
Now should the cancel routine get called if the
application crashes due to some reason or the other
(e.g invalid memory reference etc) if not how could
the pending IRP be completed. If I exit the
application normally the cancel routine does get
called for the pending IRP.
Thanks in advance
Mudeem
Sell on Yahoo! Auctions – no fees. Bid on great items.
http://auctions.yahoo.com/
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of mudeem siddiqui
Sent: Monday, July 11, 2005 4:38 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Cancel routine when application crashes
Hi,
I send a custom IOCTL from an application to a driver
using DeviceIoControl. In the driver I mark the
corresponding IRP as pending. Before doing that I set
the cancel routine using IoSetConcelRoutine.
Now should the cancel routine get called if the
application crashes due to some reason or the other
(e.g invalid memory reference etc) if not how could
the pending IRP be completed. If I exit the
application normally the cancel routine does get
called for the pending IRP.
>When you will be exiting, you will be closing the handle to driver
this >>might be triggering the calling of cancel routine but when
application is >>crashing IO manager may not be getting any hint the
application is going >>away. So what seems to me is driver should keep
on processing the IRP >>normally which is in pending state, complete it
when processing is done.
Thanks in advance
Mudeem
Sell on Yahoo! Auctions - no fees. Bid on great items.
http://auctions.yahoo.com/
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The cancel routine will be called if the application terminates normally or
due to an error.
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Monday, July 11, 2005 7:38 AM
Subject: RE: [ntdev] Cancel routine when application crashes
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of mudeem siddiqui
Sent: Monday, July 11, 2005 4:38 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Cancel routine when application crashes
Hi,
I send a custom IOCTL from an application to a driver
using DeviceIoControl. In the driver I mark the
corresponding IRP as pending. Before doing that I set
the cancel routine using IoSetConcelRoutine.
Now should the cancel routine get called if the
application crashes due to some reason or the other
(e.g invalid memory reference etc) if not how could
the pending IRP be completed. If I exit the
application normally the cancel routine does get
called for the pending IRP.
>>When you will be exiting, you will be closing the handle to driver
this >>might be triggering the calling of cancel routine but when
application is >>crashing IO manager may not be getting any hint the
application is going >>away. So what seems to me is driver should keep
on processing the IRP >>normally which is in pending state, complete it
when processing is done.
Thanks in advance
Mudeem
____________________________________________________
Sell on Yahoo! Auctions - no fees. Bid on great items.
http://auctions.yahoo.com/
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks alot.
Mudeem
— Don Burn wrote:
> The cancel routine will be called if the application
> terminates normally or
> due to an error.
>
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
>
>
> ----- Original Message -----
> From:
> To: “Windows System Software Devs Interest List”
>
> Sent: Monday, July 11, 2005 7:38 AM
> Subject: RE: [ntdev] Cancel routine when application
> crashes
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf
> Of mudeem siddiqui
> Sent: Monday, July 11, 2005 4:38 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Cancel routine when application
> crashes
>
> Hi,
>
> I send a custom IOCTL from an application to a
> driver
> using DeviceIoControl. In the driver I mark the
> corresponding IRP as pending. Before doing that I
> set
> the cancel routine using IoSetConcelRoutine.
>
> Now should the cancel routine get called if the
> application crashes due to some reason or the other
> (e.g invalid memory reference etc) if not how could
> the pending IRP be completed. If I exit the
> application normally the cancel routine does get
> called for the pending IRP.
> >>When you will be exiting, you will be closing the
> handle to driver
> this >>might be triggering the calling of cancel
> routine but when
> application is >>crashing IO manager may not be
> getting any hint the
> application is going >>away. So what seems to me is
> driver should keep
> on processing the IRP >>normally which is in
> pending state, complete it
> when processing is done.
>
> Thanks in advance
>
> Mudeem
>
>
>
> __________________
> Sell on Yahoo! Auctions - no fees. Bid on great
> items.
> http://auctions.yahoo.com/
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@wipro.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown
> lmsubst tag argument: ‘’
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html
Windows will close the handle for you if your application crashes, causing
the cancel routine to get called.
Here’s a good article on cancel routines:
http://www.osronline.com/login.cfm?prompt=ntInsider&id=72
–
-Farooque
wrote in message news:xxxxx@ntdev…
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of mudeem siddiqui
Sent: Monday, July 11, 2005 4:38 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Cancel routine when application crashes
Hi,
I send a custom IOCTL from an application to a driver
using DeviceIoControl. In the driver I mark the
corresponding IRP as pending. Before doing that I set
the cancel routine using IoSetConcelRoutine.
Now should the cancel routine get called if the
application crashes due to some reason or the other
(e.g invalid memory reference etc) if not how could
the pending IRP be completed. If I exit the
application normally the cancel routine does get
called for the pending IRP.
>>When you will be exiting, you will be closing the handle to driver
this >>might be triggering the calling of cancel routine but when
application is >>crashing IO manager may not be getting any hint the
application is going >>away. So what seems to me is driver should keep
on processing the IRP >>normally which is in pending state, complete it
when processing is done.
Thanks in advance
Mudeem
____________________________________________________
Sell on Yahoo! Auctions - no fees. Bid on great items.
http://auctions.yahoo.com/
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to xxxxx@lists.osr.com