views:

45

answers:

2

Hey,

How can I shut off the windows sound from an ASP.NET page.

Thanks.

+3  A: 

Why on earth would a browser let you shut down the whole OS sound? Leave my sound alone!

Even if your on a desktop app, still, leave my sound alone!

TheLQ
Yes, I'm talking about a page that can shut off the windows sound.
dotNET
@AZIRAR: This is equivalent to saying: "I want to build a telephone that is capable of giving painful electric shocks to the person I am talking to." What could *possibly* make you think that (a) this is worth doing, and (b) that your users would want it?
Daniel Pryden
+1  A: 

The only way I can think of doing that would be through an unsecure plug-in or ActiveX control.

Also, doing so is just wrong in any case. Navigating to a web-page doesn't imply permission to change system-wide parameters.

Christopher Estep
is it possible or not ?
dotNET
Without looking like malware? Probably not possible...
jball
So the user must activate the ActiveX control ?How can I implement this ?
dotNET
I don't think windows comes with any way to mute the whole system sound (or manipulate it). You might be able to talk to drivers directly, but...
TheLQ
Another option would be to implement a protocol handler for your own "mute://" protocol that would need to be installed locally (as stand-alone application and no browser plug-in). To mute the volume you could use the Endpoint Volume API (http://msdn.microsoft.com/en-us/library/dd370839%28VS.85%29.aspx)
0xA3