Without going into too much confusing detail, I have a small question...
I'm developing a Winforms application. Because of the purpose of theapplication, it's desirable that windows doesn't play any system sounds (eg. "mail received" etc) while it is running.
I've done a solution where I manipulate the selected sound scheme setting in the Registry (setting it to "No Sounds" when the application starts and returning it to the selected sound scheme when it closes). That works great, no problem.
But manipulating the registry requires the application to be run with admin priviledges, and I would rather avoid that if possible at all.
Does anybody know of any other way of changing the current sound scheme programmatically? Any Api's or namespaces I might have missed.
Googling this turns up absolutely zilch!
[EDIT] To keep irrelevant comments to a minimum: I NEED to do this by changing the current sound scheme - not in any other way. What I need input on is HOW to change the selected sound scheme in the best way, nothing more, nothing less... As mentioned, I have got a working solution, but I would like to do it in a more elegant way (eg. without requiring admin permissions), hence this question [/EDIT]
TIA,
Johnny J.