I have code that ads both Autoplay and WIA handlers for reading images files from memory cards and digital cameras, respectively, and it works fine.
However, I'd like to reset the Autoplay and WIA handlers to the default of "Ask me what to do every time" the first time my application is run. Why? Because if the user has the handlers set to something else then when s/he tries to use my application, their machine will still do the something else and then s/he will complain to me that my application doesn't work when in fact their machine is simply honoring their previous settings.
So is there any way to reset both Autoplay and WIA handlers programatically? I assume there's either some API call (preferably Win32 and not .Net) or registry setting(s) that can be modified.