Load a driver

Hi,

I built a driver, name it XXX, and I want to start it dynamically (by using
“net start XXX”).

After I set the appropriate registry keys and copy the driver in
\winnt\system32\drivers
I want to start it. When I run “net start XXX” I receive the following error
message:

“The service name is invalid.
More help is available by typing NET HELPMSG 2185.”

If I reboot the machine everything is just fine and I can started
successfully.

Here are the registry keys that I used:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XXX]
“Start”=dword:00000002
“Type”=dword:00000001
“ErrorControl”=dword:00000001

What am I doing wrong? Is any way to use a device-driver without rebooting
the machine?

FYI: The driver is pretty simple, you can consider it as a “Hello World”
device-driver.

Any help will be appreciated,

Thanks,

Mircea (xxxxx@platform.com)


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> ----------

From: Mircea Avram[SMTP:xxxxx@platform.com]
Reply To: NT Developers Interest List
Sent: Wednesday, April 11, 2001 10:35 PM
To: NT Developers Interest List
Subject: [ntdev] Load a driver

After I set the appropriate registry keys and copy the driver in
\winnt\system32\drivers

What am I doing wrong? Is any way to use a device-driver without rebooting
the machine?

You haven’t informed SCM about your driver. Look for CreateService() docs.
As an alternative, you can use some utility as sc.exe from resource kit.

Best regards,

Michal Vodicka
Veridicom
(RKK - Skytale)
[WWW: http://www.veridicom.com , http://www.skytale.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com