Is there a way to provide a call to a user-defined program after a plug-and-play flash drive has been inserted and detected by Windows?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, Microsoft finally figured out that autorun programs are a huge security risk, and no longer will start an application when a drive is inserted.
However, an application that’s already installed and running can be notified when a drive is inserted. Is that sufficient? Look up
WM_DEVICECHANGEand specifically theDBT_DEVICEARRIVALw/DBT_DEVTYP_VOLUMEcase.