Detecting CD eject\insertion
Article Writing
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, i need some help with detecting when a CD is inserted or ejected from a drive. I've tried to override get the message handler... afx_msg BOOL CWnd::OnDeviceChange( UINT nEventType, DWORD dwData ); but it doesn't seem to be called? The docs say that the WM_DEVICECHANGED message is sent to all top level windows? so shouldn't all the apps get this message. If anyone has any code for this it would be really helpful Thanks. Jared Allen.