How to load/unload a module

Hi all,
I’m a newbie in the driver development world.
I have started writing simple kernel drivers for practice. Can you
please let me know if there is any way we can load/unload a module in the
target system from WinDbg.

Thanks
Anubhav

Not typically, no, assuming you are talking about using WinDbg as a kernel debugger. You can monitor driver load or unload operations, though.


Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net

“Anubhav” wrote in message news:xxxxx@windbg…
Hi all,
I’m a newbie in the driver development world.
I have started writing simple kernel drivers for practice. Can you please let me know if there is any way we can load/unload a module in the target system from WinDbg.

Thanks
Anubhav

You can also have WinDBG install the latest copy of the driver from you
debug host to the test system with .kdfiles command. Note: this does not
cause the act of loading, only the replacement of the driver if there is a
newer one.

If your drivers are legacy (i.e. non-PNP) then check out the OSR driver
loader, http://www.osronline.com/article.cfm?article=157 as a way to load /
unload drivers.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Skywing” wrote in message
news:xxxxx@windbg…
Not typically, no, assuming you are talking about using WinDbg as a kernel
debugger. You can monitor driver load or unload operations, though.


Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net

“Anubhav” wrote in message news:xxxxx@windbg…
Hi all,
I’m a newbie in the driver development world.
I have started writing simple kernel drivers for practice. Can you please
let me know if there is any way we can load/unload a module in the target
system from WinDbg.

Thanks
Anubhav