Solved

Dynamic reloading device drivers

Posted on 2004-10-01
4
162 Views
Last Modified: 2010-04-15
I writing a device driver and I load it dynamically now, but when I make changes I need to reboot to get the new version to run. I can delete the old file and replace it with the new version. But the old version is still running, how can I get the old version out of memory without rebooting?

Thanks
Bill
0
Comment
Question by:bnemmers
4 Comments
 
LVL 22

Accepted Solution

by:
grg99 earned 250 total points
ID: 12206753
What's the operating system?

Windows NT thru XP have the ability to modify system files on the fly without rebooting, DOS and Windows 95 thru Me do not.

In general, it's not possible to "unload" a device driver unless it has an explicit entry point and code for unloading itself.  Most device drivers grab onto some interrupt or I/O chain, and the OS doesnt know about this and can't undo it in general-- there has to be specific code in the driver that unhooks itself from anything it has hooked into.

0
 
LVL 1

Author Comment

by:bnemmers
ID: 12213686
I using Win2k, I'll try putting some code to unload from the driver itself.
On a different note, do you know how to get the user name from a driver if you know the the process ID?

Thanks
Bill
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now