none
Device classes registry entries in windows 8 not updating on device unplug and plug. RRS feed

  • Question

  • Hi all,

    We have a application where we use below registry path to get the device id and vendor id.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{4d1e55b2-f16f-11cf-88cb-001111000030} 

    We also use "SymbolicLink" key  in windows 7 present under subkey '#' under mainkey  

    (##?#HID#VID_xxx&PID_xxxx&MI_03&Col02#8&2a6c63d5&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030}) to get the the latest time stamp of the device connected.

    I have observed that this Symbolic Link key gets updated on device unplug and plug in windows 7 and we were able to get the latest time stamp. 

    But in windows 8 Symbolic Link key is not present and DeviceClasses also will not get update on device unplug and plug.

    Please suggest me which paths in registry keys gets updated on device unplug and plug to get the latest time stamp of the device connected.

    Thanks in advance.

    Tuesday, April 2, 2013 2:38 PM

Answers

  • You are totally in the undocumented part of Windows Plug and Play.  Step back and tell us what the goal of reading this data is?  You cannot rely on it (in the past it changed once even with a hotfix!).  There is probably a way to get what you want from the SetupAPI's but reading those registry keys is not a great idea.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Tuesday, April 2, 2013 2:48 PM

All replies

  • You are totally in the undocumented part of Windows Plug and Play.  Step back and tell us what the goal of reading this data is?  You cannot rely on it (in the past it changed once even with a hotfix!).  There is probably a way to get what you want from the SetupAPI's but reading those registry keys is not a great idea.


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Tuesday, April 2, 2013 2:48 PM
  • Thanks for the reply.

    I wanted to develop a tool like USBDeview (http://www.nirsoft.net/utils/usb_devices_view.html), where we can get the latest time stamp of the device plugged from DeviceClasses registry. I can able to get latest time stamp of the device plugged in windows 7. 

    When i used the same tool on windows 8 it is not working as it was on windows 7. I saw that in windows 7 on device unplug and plug main key 

    (##?#HID#VID_xxxx&PID_xxxx&MI_03&Col02#8&2a6c63d5&0&0001#{4d1e55b2-f16f-11cf-88cb-001111000030) gets updated. 

    I wanted to know why it is not updating on USB device plug in windows 8.  

    If it is updating something, which part in registry getting updated in windows 8 so that i can get the latest time stamp of the device connected.

    Thanks in advance.


    Wednesday, April 3, 2013 4:53 AM