Disable sound notifications?

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,
I'm running an application on a windows ce, and I wish to disable the sound
notifications by code.
You can see the sound notifications check box in the control panel , volume
& sounds application, volume tab.

Any help?

Tomer.
 
All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.
 
I recomend you to see carefully the Mute values. Not sure about your
device but my iPilot 8000 has the following description:

0 bit - Notifications sounds
1 bit - Applications sounds
2 bit - Events sounds

Based on the description above if you set the "Mute" value to 6 (110b)
you will disable "Notifications".


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Sergey,

I have only volume,mute,screen and key items in that registry.
Are there any new keys I should add in order to disable the sound
notifications, or is it just not stored in the registery?

Thanks, Tomer.

All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,
I'm running an application on a windows ce, and I wish to disable the
sound notifications by code.
You can see the sound notifications check box in the control panel ,
volume & sounds application, volume tab.

Any help?

Tomer.
 
Hi Sergey,

I have only volume,mute,screen and key items in that registry.
Are there any new keys I should add in order to disable the sound
notifications, or is it just not stored in the registery?

Thanks, Tomer.

Sergey Bogdanov said:
All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,
I'm running an application on a windows ce, and I wish to disable the
sound notifications by code.
You can see the sound notifications check box in the control panel ,
volume & sounds application, volume tab.

Any help?

Tomer.
 
Hi Sergey,

That did the trick! Thanks a bunch!!

Tomer.


Sergey Bogdanov said:
I recomend you to see carefully the Mute values. Not sure about your device
but my iPilot 8000 has the following description:

0 bit - Notifications sounds
1 bit - Applications sounds
2 bit - Events sounds

Based on the description above if you set the "Mute" value to 6 (110b) you
will disable "Notifications".


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Sergey,

I have only volume,mute,screen and key items in that registry.
Are there any new keys I should add in order to disable the sound
notifications, or is it just not stored in the registery?

Thanks, Tomer.

All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Tomer wrote:

Hi,
I'm running an application on a windows ce, and I wish to disable the
sound notifications by code.
You can see the sound notifications check box in the control panel ,
volume & sounds application, volume tab.

Any help?

Tomer.
 
Hi Sergey,

The registry change from code doesn't take effect right away, I've tried
using NotifyWinUserSystem function but with no success.

Tomer.


Sergey Bogdanov said:
I recomend you to see carefully the Mute values. Not sure about your device
but my iPilot 8000 has the following description:

0 bit - Notifications sounds
1 bit - Applications sounds
2 bit - Events sounds

Based on the description above if you set the "Mute" value to 6 (110b) you
will disable "Notifications".


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Sergey,

I have only volume,mute,screen and key items in that registry.
Are there any new keys I should add in order to disable the sound
notifications, or is it just not stored in the registery?

Thanks, Tomer.

All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Tomer wrote:

Hi,
I'm running an application on a windows ce, and I wish to disable the
sound notifications by code.
You can see the sound notifications check box in the control panel ,
volume & sounds application, volume tab.

Any help?

Tomer.
 
You may try to send WM_WININICHANGE message; otherwise you have to soft
reset a device for the changes to take effect.

const int WM_WININICHANGE = 0x001A;
const int HWND_BROADCAST = 0xffff;

Win32Window.SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xf2, 0);


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Sergey,

The registry change from code doesn't take effect right away, I've tried
using NotifyWinUserSystem function but with no success.

Tomer.


I recomend you to see carefully the Mute values. Not sure about your device
but my iPilot 8000 has the following description:

0 bit - Notifications sounds
1 bit - Applications sounds
2 bit - Events sounds

Based on the description above if you set the "Mute" value to 6 (110b) you
will disable "Notifications".


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi Sergey,

I have only volume,mute,screen and key items in that registry.
Are there any new keys I should add in order to disable the sound
notifications, or is it just not stored in the registery?

Thanks, Tomer.



All that settings are stored in the:
[HKEY_CURRENT_USER\ControlPanel\Volume]

use can use OpenNETCF.Win32.Registry class to modify it.


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Tomer wrote:


Hi,
I'm running an application on a windows ce, and I wish to disable the
sound notifications by code.
You can see the sound notifications check box in the control panel ,
volume & sounds application, volume tab.

Any help?

Tomer.
 
Back
Top