Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Installing a driver as a service

Reply
Thread Tools Display Modes

Installing a driver as a service

 
 
sleeper
Guest
Posts: n/a

 
      09-01-2006
Hello,

I was wondering if anyone knew of an easy way to install a driver?
It's a driver I made and it is just a binary. I don't have any .inf
files. Someone suggested earlier that you could do it as a service...
When I tried his method though, I get the error message:

[SC] StartService FAILED 1058:

The service cannot be started, either because it is disabled or because
it has no enabled devices associated with it.

The driver that I am trying to install is just a simple keyboard
driver, the one that comes with the Windows DDK. It's called kbfiltr.

i first created the service such as:

"sc create kbfilter binpath= c:\kbfiltr.sys type= kernel"

then I executed: "sc start kbfilter"

no luck..

anyone know what I could do?

thanks

 
Reply With Quote
 
 
 
 
Don Burn
Guest
Posts: n/a

 
      09-01-2006
What type of driver is it? If it does not touch hardware, and is not PnP
you can use the Service API's, but if it uses hardware with plug and play
you need an inf. You can look at the DevCon sample in the DDK if you want a
way to install the driver programatically.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply



"sleeper" <> wrote in message
news: oups.com...
> Hello,
>
> I was wondering if anyone knew of an easy way to install a driver?
> It's a driver I made and it is just a binary. I don't have any .inf
> files. Someone suggested earlier that you could do it as a service...
> When I tried his method though, I get the error message:
>
> [SC] StartService FAILED 1058:
>
> The service cannot be started, either because it is disabled or because
> it has no enabled devices associated with it.
>
> The driver that I am trying to install is just a simple keyboard
> driver, the one that comes with the Windows DDK. It's called kbfiltr.
>
> i first created the service such as:
>
> "sc create kbfilter binpath= c:\kbfiltr.sys type= kernel"
>
> then I executed: "sc start kbfilter"
>
> no luck..
>
> anyone know what I could do?
>
> thanks
>



 
Reply With Quote
 
anton bassov
Guest
Posts: n/a

 
      09-02-2006
Hi mate

> The driver that I am trying to install is just a simple keyboard
> driver, the one that comes with the Windows DDK. It's called kbfiltr.


I am afraid you need an .inf file here - after all, kbdfilter is
low-level filter driver that has to get loaded before kbd class driver
does. As Don told you already, you can get away with creating a driver
service only if you driver does not deal with hardware and PnP, and
this is not the case here.

> I don't have any .inf files.


How come???? If you look carefully, you will see that kbdfilter sample
comes with .inf file

Anton Bassov

sleeper wrote:
> Hello,
>
> I was wondering if anyone knew of an easy way to install a driver?
> It's a driver I made and it is just a binary. I don't have any .inf
> files. Someone suggested earlier that you could do it as a service...
> When I tried his method though, I get the error message:
>
> [SC] StartService FAILED 1058:
>
> The service cannot be started, either because it is disabled or because
> it has no enabled devices associated with it.
>
> The driver that I am trying to install is just a simple keyboard
> driver, the one that comes with the Windows DDK. It's called kbfiltr.
>
> i first created the service such as:
>
> "sc create kbfilter binpath= c:\kbfiltr.sys type= kernel"
>
> then I executed: "sc start kbfilter"
>
> no luck..
>
> anyone know what I could do?
>
> thanks


 
Reply With Quote
 
sleeper
Guest
Posts: n/a

 
      09-03-2006
Thanks guys for the help. I will try this out.


anton bassov wrote:
> Hi mate
>
> > The driver that I am trying to install is just a simple keyboard
> > driver, the one that comes with the Windows DDK. It's called kbfiltr.

>
> I am afraid you need an .inf file here - after all, kbdfilter is
> low-level filter driver that has to get loaded before kbd class driver
> does. As Don told you already, you can get away with creating a driver
> service only if you driver does not deal with hardware and PnP, and
> this is not the case here.
>
> > I don't have any .inf files.

>
> How come???? If you look carefully, you will see that kbdfilter sample
> comes with .inf file
>
> Anton Bassov
>
> sleeper wrote:
> > Hello,
> >
> > I was wondering if anyone knew of an easy way to install a driver?
> > It's a driver I made and it is just a binary. I don't have any .inf
> > files. Someone suggested earlier that you could do it as a service...
> > When I tried his method though, I get the error message:
> >
> > [SC] StartService FAILED 1058:
> >
> > The service cannot be started, either because it is disabled or because
> > it has no enabled devices associated with it.
> >
> > The driver that I am trying to install is just a simple keyboard
> > driver, the one that comes with the Windows DDK. It's called kbfiltr.
> >
> > i first created the service such as:
> >
> > "sc create kbfilter binpath= c:\kbfiltr.sys type= kernel"
> >
> > then I executed: "sc start kbfilter"
> >
> > no luck..
> >
> > anyone know what I could do?
> >
> > thanks


 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      09-04-2006
> "sc create kbfilter binpath= c:\kbfiltr.sys type= kernel"

No, keyboard filters are PnP devices, and will also require the UpperFilters
entry for Keyboard class.

Also you must reboot after this installation, since the PS/2 keyboard stack is
not stoppable.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation

http://www.storagecraft.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a service in Vista vehamala Windows Vista Installation 1 09-17-2007 09:38 PM
Installing device from within service Tobias Erichsen Windows Vista Drivers 5 07-16-2006 02:56 PM
Re: installing driver "FROM" a Service during startup soumik Windows Vista Drivers 0 11-02-2004 10:20 PM
Re: installing driver "FROM" a Service during startup Maxim S. Shatskih Windows Vista Drivers 0 11-01-2004 10:33 PM
Re: installing driver "FROM" a Service during startup Peter Wieland [MSFT] Windows Vista Drivers 0 11-01-2004 07:31 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59