how can I delete registry key value in HKLM

Discussion in 'Windows Vista Security' started by Rastlin Chen, Sep 5, 2006.

  1. Rastlin Chen

    Rastlin Chen Guest

    Hey! I write a driver for usb device.
    I can call UpdateDriverForPlugAndPlayDevices to replace inbox driver with my
    driver when device is on system.
    But if device is not on system, I must delete HKLM/CurrentControlSet/
    Enum/USB/{ID Value} to force device recgonize
    when it replug on system.
    In XP I can delete it, but how can I do it in Vista?
    Thanks a lot!
     
    Rastlin Chen, Sep 5, 2006
    #1
    1. Advertisements

  2. Rastlin Chen

    Jimmy Brush Guest

    Jimmy Brush, Sep 5, 2006
    #2
    1. Advertisements

  3. Hi, wrong news group, but please refer to the "devcon" example in the DDK
    for performing re-install of devices. Do not delete these keys... One time I
    spent weeks debugging end-users issues because a driver installer writer of
    a single unnamed product decided to modify the Enum keys directly! Search
    for "Device Installs: The Good, the Bad and the Ugly" to find a WinHEC 2002
    presentation on these issues.

    -
    Jamie Hunter [MS]
     
    Jamie Hunter [MS], Sep 8, 2006
    #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.