tags:

views:

202

answers:

1

I am looking for a way to set/change default input device inside my application. I have several different recording devices and it is very anoying to go into the control panel and change default recording device. I was looking around and I did not find anything that could help me with the problem. Application is written in c# and it is targeted for Windows Vista / Windows 7.

A: 

There is no public API to do this in Vista/7 AFAIK.

For a media center launch thing I created, I had to open the control panel and send keys to the dialog, a big ugly hack, but it's the best you can do. (Or run .net reflector on media center (It is able to change it, using undocumented calls))

Anders
Opening control panel is not an option and I dont need it for media center, but tnx for suggestion.
Opening the control panel and automating the dialog is your only legal option
Anders
@Matthias Vance http://blogs.msdn.com/larryosterman/archive/2008/07/11/whatever-happened-to-wave-out-mix.aspx#8769290 see the last comment by Larry
Anders
You are right, I was confused by the answer giving in the other SO thread (user replying that it would work on Windows 7).
Matthias Vance