Question

How do I install "hello world" driver manually? I have written a registry script where "start"=dword:3 means service requires manual start.

But how do I start and stop it? I have tried sc start <path to .sys file> but it says specified service does not exist as an installed service.

Also if possible, please tell me how the mapping between registry keys and driver's .sys file is made. My understanding is that with registry value, we mention name [HKEY_LO.../drivername] this drivername is searched in Windows/system32/drivers/ directory. If it is found there then that driver is treated according to other parameters. Please correct me if I am wrong.

Was it helpful?

Solution

You might try using net start instead of sc start. If you continue to receive this message then it is possible that you haven't compiled your driver correctly and this is the reason it's failing to load.

There is a full example of a simple DriverEntry based "Hello World" driver here: http://www.catch22.net/tuts/introduction-device-drivers

I'd also recommend reading Windows NT Device Driver Development by Peter Viscarola.

OTHER TIPS

What Preston has told works, it also works with sc. I was doing giving path to .sys file with it, but we need to just tell the name of the service.

eg. sc start minimal

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top