开发者

Windows Driver unload pending

开发者 https://www.devze.com 2023-03-13 22:58 出处:网络
I am writing a driver (legacy I believe) that creates a virtual hard drive from a file, however when I try to unload my driver some times it and most times it hangs. The driver unloads cleanly if it h

I am writing a driver (legacy I believe) that creates a virtual hard drive from a file, however when I try to unload my driver some times it and most times it hangs. The driver unloads cleanly if it hasn't received any irps yet but as soon as it does I can't unload it. have read that the unload routine isn't called unless the driver has nothing referencing it. I believe there may be another driver(a file system driver) referencing it however I don't know which driver it is. Ho开发者_StackOverflow社区w can I see if my driver is getting referenced and if so how can i stop that driver from referencing mine?


Check the "HandleCount" and "PointerCount" of your driver's "DriverObject" and "DeviceObject" using windbg.

Useful Windbg commands are: !drvobj and !devobj.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号