Error DRIVER UNLOADED WITHOUT CANCELLING PENDING OPERATIONS

From time to time my driver crash with error DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS.

How can I cancel pending operations when I receive DriverUnload()?

You handle the various EvtDevice callbacks associated with device removal
before your driver is unloaded and cancel all pending operations for each
device being removed. See PnP and Power Management Scenarios here
https://msdn.microsoft.com/en-us/library/windows/hardware/ff544391(v=vs.85).aspx

Mark Roddy

On Thu, Mar 24, 2016 at 7:00 AM, wrote:

> From time to time my driver crash with error
> DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS.
>
> How can I cancel pending operations when I receive DriverUnload()?
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> http://www.osronline.com/showlists.cfm?list=ntdev&gt;
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>