How to dynamically detect when CD/DVD burner drive is added/removed ?
-
I use an external DVD burner connected through firewire, and want to be able to dynamically detect when it's switched on and off while my app is running, so I know when it's available or not. I have seen the following CP article, which suggests using the WM_DEVICECHANGE broadcast message but wasn't exactly sure how to handle this message. I need it to run on Win 95 so I cannot use SHChangeNotifyRegister() which is only for Win 2000 and above. http://www.codeproject.com/shell/shchangenotifyregister.asp[^]
-
I use an external DVD burner connected through firewire, and want to be able to dynamically detect when it's switched on and off while my app is running, so I know when it's available or not. I have seen the following CP article, which suggests using the WM_DEVICECHANGE broadcast message but wasn't exactly sure how to handle this message. I need it to run on Win 95 so I cannot use SHChangeNotifyRegister() which is only for Win 2000 and above. http://www.codeproject.com/shell/shchangenotifyregister.asp[^]