That is correct. Setting the default driver via the INF is no longer supported in Windows 7. The Windows 7 device selection heuristics are now used to select the default device. The user can still override this selection via the control panel. Removal of support for this INF entry was necessary to enable our new stream routing scenarios. For example, audio will automatically route to your headphones when you plug them in. -Richard Fricks Program Manager – Windows 7 From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Barry Fisher Sent: Friday, June 12, 2009 12:07 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: setting audio device as default from the VC++ Beware...this keyword is not supported in Windows 7 -BarryF ________________________________ From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx> To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx> Sent: Thursday, June 11, 2009 12:38:51 PM Subject: [wdmaudiodev] Re: setting audio device as default from the VC++ A driver can request in its .inf that it be made the default audio device at install time: http://msdn.microsoft.com/en-us/library/bb981547.aspx AddReg = XYZ-Audio-Device.AddReg ... [XYZ-Audio-Device.AddReg] HKR,,SetupPreferredAudioDevices,3,01,00,00,00 For the RDP scenario it may be reasonable (or not) to disable all of the other audio drivers via SetupAPI calls. From: wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Karthik Gurumurthy Sent: Wednesday, June 10, 2009 9:17 PM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: setting audio device as default from the VC++ I have created an audio device driver, during the RPD session, login time i have to set that driver as default audio driver for streaming the audio data to my RDP client. On Thu, Jun 11, 2009 at 9:34 AM, Frank Yerrace <Frank.Yerrace@xxxxxxxxxxxxx<mailto:Frank.Yerrace@xxxxxxxxxxxxx>> wrote: Just to be clear, there is no documented or supported way to do this. If you create some solution through reverse engineering, there’s no guarantee it will work in all cases and may not work on all relevant versions of Windows. May I ask again, why do you need to? We’d like to understand the scenarios in case there are other improvements we should make in this area the future. Frank Yerrace Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>] On Behalf Of Karthik Gurumurthy Sent: Wednesday, June 10, 2009 8:40 PM To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx> Subject: [wdmaudiodev] Re: setting audio device as default from the VC++ Thanks guys, I figured it out how to do this. writing to the registry from vc++ will do the work. Karthik SG On Thu, Jun 11, 2009 at 12:01 AM, Frank Yerrace <Frank.Yerrace@xxxxxxxxxxxxx<mailto:Frank.Yerrace@xxxxxxxxxxxxx>> wrote: There is no documented way to do this. My usual follow up question: why do you want to? Frank Yerrace Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> [mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx>] On Behalf Of Karthik Gurumurthy Sent: Wednesday, June 10, 2009 1:25 AM To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx> Subject: [wdmaudiodev] setting audio device as default from the VC++ Hi all, How can i set an audio device driver to default from an VC++ program. Karthik SG