How to simulate a HID device plug-out and plug-in by code and API(or DDK)?

Discussion in 'Windows Vista Drivers' started by smtppop, Jan 18, 2007.

  1. smtppop

    smtppop Guest

    Hi,

    I have to dynamic reload a HID device stack.
    As you know, when the hid device plug-out and plugin, the stack will be
    rebuilt.
    Now, we do not want to do the action manually. So how can we send a message
    or event to Pnp Manager to simulate this event ?


    Thanks!
     
    smtppop, Jan 18, 2007
    #1
    1. Advertisements

  2. Why do you need that? I never had problems with clean HID devices.
     
    Robert Marquardt, Jan 18, 2007
    #2
    1. Advertisements

  3. you don't tell the pnp manager to unplug the device, rather you should
    disable the device and then reenable it. the devcon sample in the ddk shows
    how to do both

    d
     
    Doron Holan [MS], Jan 19, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.