Restarting input filter drivers without a reboot

I have two input filter drivers (keyboard and mouse) that I’d like to update
without requiring a reboot if at all possible.

I know this isn’t possible if I’m filtering a PS/2 stack, but in other cases
I should be able to update the driver and restart the devices to use the new
binary without requiring a reboot.

Devcon uses DICS_PROPCHANGE to restart devices, so I should be able to use
the same approach. My question is how I determine if any of the keyboard or
mouse devices are PS/2 and a reboot is therefore required. Do I just call
the SetupDiXx functions and observe if the return code indicates that a
reboot is required, or is there a different approach I should take?

Thanks,

Soren

Anybody?

Yeah I have done something similar I just used SetupDiGetDeviceInstallParams
to check for DI_NEEDRESTART|DI_NEEDREBOOT

On Fri, Jan 7, 2011 at 12:57 AM, wrote:

> Anybody?
>
> —
> NTDEV is sponsored by OSR
>
> 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
>

Thanks Dan. That’s similar to what devcon does. I just implemented it and things work great.