need help on detecting the insertion of a USB device
-
Hi all, I need to be able to do something when a particular USB device is connected. the closest i've come to understanding this topic is using the WM_DEVICECHANGE, but i'm not really sure how to use it. i've also found this webpage: http://msdn2.microsoft.com/en-us/library/aa363215.aspx it talks about how to handle an insertion of a CDROM. however, i'm also not really sure how to use this function. does the Main_OnDeviceChange function gets called automatically when a cd is inserted? how do i use this function in my MFC dialog based application? and i need to tweak it to detect the insertion of a USB device instead of a CD. can someone please help me! any help is greatly appreciated... thanks Loath
-
Hi all, I need to be able to do something when a particular USB device is connected. the closest i've come to understanding this topic is using the WM_DEVICECHANGE, but i'm not really sure how to use it. i've also found this webpage: http://msdn2.microsoft.com/en-us/library/aa363215.aspx it talks about how to handle an insertion of a CDROM. however, i'm also not really sure how to use this function. does the Main_OnDeviceChange function gets called automatically when a cd is inserted? how do i use this function in my MFC dialog based application? and i need to tweak it to detect the insertion of a USB device instead of a CD. can someone please help me! any help is greatly appreciated... thanks Loath
refer this[^] article by Sam NG.
Prasad Notifier using ATL | Operator new[],delete[][^]