[wdmaudiodev] Re: setting audio device as default from the VC++

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 11 Jun 2009 16:38:51 +0000

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



Other related posts: