Hello! I'm developing a DotNet app that uses WIA (Windows Image Aquisition) to grab images from a camera. That's no problem. My issue is that whenever a user plugs in their camera, they get (by default) the standard dialog box: "Device connected - Select the program to launch for this action." What I want to do is kill that dialog programmatically. Note that this app will run solely on XP systems.
PLEASE-- I know how to do it manually (go to the camera properties, Events tab, select "Take no action"). I've also seen code for registering my own application to appear in the dialog list. I've seen other code that captures that dialog box, but only if my app has focus. None of those options meet my need. What I need is DotNet code to programmatically change the device connection event to "Take no action."
WHY? you ask. IS THAT EVEN ETHICAL? you ask. To answer both questions, my app is for internal company use only, by remote employees who are largely computer illiterate. I'm trying to prevent the confusion of just one more window popping up. And believe me, they find this sort of thing very confusing.
If you can tell me this isn't possible-- and I can understand why Windows might not allow it, for security reasons-- that would be fine. If push comes to shove, I can write a walkthrough to show users how to manually set XP to "Take no action" when they plug their camera in. But that's a last resort.
Thanks for any help!