Prev Previous Post   Next Post Next

Software only PnP

Posted: 09-03-2004, 12:25 PM
Hi

I have a legacy kernel driver, that uses the a COM port (serial.sys). Its
works OK and application can acces it as they schould.

Now I would like to make the driver know, if the system is restarting or
shutting down. To get this information, it must be a PnP driver. Is that
right ?

I then have to add a XXXAddDevice and a XXXDispatchPnp major function in my
DriverEntry. XXXAddDevice now has to performe some of hte task done by
DriverEntry, e.g. creating symbolic link etc.

But the driver has no actual HW device attached to it, so its a software
only device driver, so i guess it schould be software enumerated by the PnP.

I whant the driver to be started by the system somewhere in the boot phase
(After the serial driver has been started), just like the legacy version do.

Do I need to add something in the registry to do this ?

If I try to start my driver manualy, after boot up is done, my XXXUnload is
called just after DriverEntry is finished, with following message in the
system log:

"The service cannot be started, either because it is disabled or because it
has no enabled devices associated with it. " ID event: 7000

So my XXXAddDevice never gets called.

How do I get the PnP to start this driver and accept, that there is no
device associated with it ?

Thomas


Reply With Quote

Responses to "Software only PnP"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
software sue Windows XP Basics 16 06-26-2004 10:49 AM
Any Software CD doesn't Run Windows XP Device Drivers 0 05-23-2004 10:58 PM
mobile edge software provides software components for mobile development wolf kumpitsch Windows XP Embedded 0 10-24-2003 05:29 AM
Buy fax software or use built-in software? Dave Windows XP Printers / Scanners / Fax 1 07-28-2003 11:12 PM