SSD – Set Sound Device v4

Windows XP allows you to output sound to more than one audio device… Vista and newer Windows versions do not. To overcome this “Failure by Design”, (IMHO somehow related to DRM, preventing user to make digital copies of analog sources), I have coded SSD – Set Sound Device.

SSD enables you to change the default Sound Device by shortcut or command line.

Version 1.1 should fix the UAC prompt bug.
Version 1.3 adds compatibility for Win8 and the option to change the sound device “invisible” (on a separate Desktop).
Version 2 adds lots of new functionalities. Win10 compatibility, change recording devices, change audio or communication device separately, merge two separate output and recording device shortcuts and more
Version 3 adds Win 10 anniversary update compatibility and removes ini-file save to AppDataDir, portable install to program directory only.
Version 4 Ported to Autoit 3.3.14.2, minor improvements and bug fixes. Identified Win10-1703 issue, after the Update Windows sometimes “cleans” the entries in the sound control panel, initially blocking the “Sound” dialog until manually confirmed. Opening the “Sound” panel manually one time fixes this topic.



It works fine on my 64bit Win10-1703 machine. If you find bugs please let me know.
 
Kudos to: Ascend4nt and NerdFencer for parts of the code, and Yashied for his most excellent WinAPIEx UDF.

Please let me know if you found some piece of code in the source for which I forgot to mention a credit.
 

http://www.autoitscript.com/forum/index.php

Disclaimer
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY
The Author of this Software expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT and any related documentation is provided “as is” without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchantability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of the SOFTWARE PRODUCT remains with you.
NO LIABILITY FOR DAMAGES
In no event shall the author of this Software be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the Author of this Software has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.