Solved

Dynamic reloading device drivers

Posted on 2004-10-01
4
164 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
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.

820 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