Where in the registry can I found mounted devices?

0

I'm writing a python application on Windows 7 (64bit) where I need to start something after a new USB storage device has been mounted. In an older application I was polling on HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM for changes and I want to do the same approach for a new USB device.

Does anyone know where in the registry I might do this?

chwi

Posted 2015-01-30T11:47:57.310

Reputation: 236

Answers

0

I found that I can poll for changes in the `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\USBSTOR\Enum'

chwi

Posted 2015-01-30T11:47:57.310

Reputation: 236

0

this site sais it's here : HKLM\SYSTEM\MountedDevices

Elazaron

Posted 2015-01-30T11:47:57.310

Reputation: 180

I thought so to, but if I unplug on of the devices with drive letters nothing happens in that registry – chwi – 2015-01-30T12:30:41.217