I don’t have a lot of experience with WDM drivers. So sorry, I hope my questions are not to simple for you.
Each time I want debug in the DriverEntry function I have to restart the computer.
Therefore I tried with .unload myDriver to remove it. But it did not work.
Are there WinDbg commands to remove and to reload a WDM driver?
This would help me to debug another time in the DriverEntry without restarting the entire computer.
Are there such commands?
Thanks in advance for your help.
xxxxx@siemens.com wrote:
I don’t have a lot of experience with WDM drivers. So sorry, I hope my questions are not to simple for you.
Each time I want debug in the DriverEntry function I have to restart the computer.
Why doesn’t your driver unload normally? What kind of driver is this,
and how are you installing and starting it? If it is plug-and-play,
then you can simply disable your device. That will unload the driver.
If it is legacy, then you can use “net stop”, assuming you have a
DriverUnload routine properly registered.
This would help me to debug another time in the DriverEntry without restarting the entire computer.
Are there such commands?
No, and this should be pretty clear. You need the permission and
cooperation of the operating system in order to get a driver to unload.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
To go along with what Tim said, look for .kdfiles. While it will not start nor stop your driver, it will allow you to load the current build of your driver the next time it is started.
Gary G. Little
----- Original Message -----
From: “Tim Roberts”
To: “Kernel Debugging Interest List”
Sent: Thursday, January 27, 2011 12:46:32 PM
Subject: Re: [windbg] reload WDM driver
xxxxx@siemens.com wrote:
> I don’t have a lot of experience with WDM drivers. So sorry, I hope my questions are not to simple for you.
>
> Each time I want debug in the DriverEntry function I have to restart the computer.
Why doesn’t your driver unload normally? What kind of driver is this,
and how are you installing and starting it? If it is plug-and-play,
then you can simply disable your device. That will unload the driver.
If it is legacy, then you can use “net stop”, assuming you have a
DriverUnload routine properly registered.
> This would help me to debug another time in the DriverEntry without restarting the entire computer.
>
> Are there such commands?
No, and this should be pretty clear. You need the permission and
cooperation of the operating system in order to get a driver to unload.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
—
WINDBG is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer