I want to detect when a Disk ( CD / DVD ) or an USB inserted or removed.
I know that I should work with WM_DEVICECHANGE
message , but my problem is getting the Volume ( Letter ) of the Drive , I tried to Get it by WMI Query
and Win32_VolumeChangeEvent
too but I could not!
there is an Example and work fine , how can I do this by Delphi?