how do i mute/unmute system sound?

1.how do i control the level of the "wave" volume and the "volume control"

(as it appears in the windows volume controler)

(C:\windows\System32\sndvol32.exe).

2.In addition how can i controll the main sound stream controler

(the sound controll that changed by a laptop keyboard)

[329 byte] By [ZergaKill] at [2007-12-22]
# 1

I guess you could use the managed DirectX SDK to see if you can control the level of the volume control. Otherwise maybe interop:

http://www.csharp-home.com/index/tiki-read_article.php?articleId=134

As for Q #2, this is all to do with the OEM drivers/software which interact from the keypress (key mapped) to hook it up to the sound volume.

ahmedilyas at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2
Try using the Win32 API function waveOutSetVolume

You can find more information at: http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_waveoutsetvolume.asp

Hope this helps,

spotty at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3
Check this thread...
nobugz at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4
You can adjust the volume too:
APPCOMMAND_VOLUME_UP = 10
APPCOMMAND_VOLUME_DOWN = 9

nobugz at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5

i think that the waveOutSetVolume , is what i am looking for.

however it uses an API function and it's code example is in C++/C.

where can i find an example how to use waveOutSetVolume function in VB.net ?

tanx for the help..

ZergaKilla at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 6

How do i use OEM drivers to change the main voulme?

tanks for the help .

ZergaKilla at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...