As said before, there is no documented way to programmatically change the default audio device. I still don't entirely understand your product. I might be able to direct you to a better overall solution (although I can make no promises) depending on the larger problem you are trying to solve. Be aware, the Microsoft RDP protocol already supports audio redirection from Remote Desktop server to the client and all of the issues regarding default audio device settings are automatically handled by the Windows server as sessions connect/disconnect locally/remotely. So it's not clear to me why you want to create your own driver to achieve a similar result. Note the RDP protocol is documented. * Are you trying to create the equivalent of "mstsc.exe" (the Microsoft Remote Desktop client) for Linux? If yes, are you also creating server components to implement your own wire protocol to remote the entire desktop? Or are you trying to override only the built-in remote audio support for some reason? * Is there a reason the built-in RDP audio redirection on the Windows server is not sufficient? I apologize if I completely misunderstand your intent here. 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] On Behalf Of Karthik Gurumurthy Sent: Sunday, June 14, 2009 3:31 AM To: wdmaudiodev@xxxxxxxxxxxxx Subject: [wdmaudiodev] Re: setting audio device as default from the VC++ I have written my own driver for routing the audio to my Linux michine (windows is my server), i want my driver to be default when rdp session starts so i was trying this. is their any way i can do this? On Sat, Jun 13, 2009 at 2:40 AM, Frank Yerrace <Frank.Yerrace@xxxxxxxxxxxxx<mailto:Frank.Yerrace@xxxxxxxxxxxxx>> wrote: Is there a reason the built-in RDP audio redirection is not sufficient? You mentioned "my RDP client". Does this imply you have a custom over-the-wire protocol that you've implemented for a remote desktop solution? Or is this just a custom client for the Microsoft RDP protocol? Either way, depending on the exact level of customization you're trying to achieve, there might be better ways to hook into this rather than write a custom WDM audio driver and attempt to manipulate default audio devices. 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 9:17 PM To: wdmaudiodev@xxxxxxxxxxxxx<mailto: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