I have several local drives such as C:, D:, F: and so on. Also several CDROM drives.
I want to know where windows store these data (drive letters and drive types).
Drive letters can be found here:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
\??\IDE#CdRomSony…
, a flash-drive/memory-card might say _??_USBSTOR#Disk&Ven_SanDisk&Prod…
, and a hard-drive will have a much shorter string (~12 bytes) of binary data that is not human-readable. You can also use DevCon
and DevManView to get a list of hardware that is or has been attached to the system.