Id like to know how to detect when a device has been plugged in, and unplugged, and then mute / unmute the laptops internal speakers
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.
In unmanaged code you would listen for WM_DEVICECHANGE in your top level windowproc.
That appears to be the only way to do it in managed code as well.