WDF kbfiltr as service

Hi,

I followed this (http://code.msdn.microsoft.com/windowshardware/Kbfiltr-WDF-Version-685ff5c4) to replace my keyboard driver with “my own”.

I did “device manager” -> “update driver software” -> “kbfiltr INF file” -> “reboot”

It’s working well.

Now I would like to update my keyboard filter driver software without having to reboot.

I thought of creating a service (sc start kbfiltr.sys, stop…) but its not working I get the message “The service cannot be started, either because it is disabled or because it has n o enabled devices associated with it”.

Any ideas ?

Best regards

You can’t use the scm to control the state of a pnp driver. To reload your driver without a reboot you must disable all keyboards

d

Bent from my phone


From: xxxxx@voila.frmailto:xxxxx
Sent: ?9/?29/?2014 9:13 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] WDF kbfiltr as service

Hi,

I followed this (http://code.msdn.microsoft.com/windowshardware/Kbfiltr-WDF-Version-685ff5c4) to replace my keyboard driver with “my own”.

I did “device manager” -> “update driver software” -> “kbfiltr INF file” -> “reboot”

It’s working well.

Now I would like to update my keyboard filter driver software without having to reboot.

I thought of creating a service (sc start kbfiltr.sys, stop…) but its not working I get the message “The service cannot be started, either because it is disabled or because it has n o enabled devices associated with it”.

Any ideas ?

Best regards


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

Thanks for your reply :slight_smile:

I guess I will go for non-pnp driver then

Do not make a poor design Cochise based on your convenience. A non pnp driver filtering the pnp keyboard stack is unsupported

d

Bent from my phone


From: xxxxx@voila.frmailto:xxxxx
Sent: ?9/?29/?2014 11:20 PM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: RE:[ntdev] WDF kbfiltr as service

Thanks for your reply :slight_smile:

I guess I will go for non-pnp driver then


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

I was looking for a non-rebooting solution for convenience but after some reading I will take your advice

thanks