I am trying to capture the Windows QueryCancelAutoPlay message that is sent
to the "foreground window" when an AutoRun enabled CD is inserted into a
drive.
Enabling and Disabling AutoRun
http://tinyurl.com/2m26
If my MainForm uses MessageBox.Show to prompt the end-user to insert a CD,
I'd like to know whether MainForm or my MessageBox is the "foreground
window". Any ideas?
Regards,
Carl