Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

  • tweakradje
  • Registratie: Januari 2004
  • Laatst online: 01-11 20:13
Nog eentje voor de collectie. Waarom is er op tweakers toch geen echte tweak sectie :O(

Ik vroeg me af of of het mogelijk is om de sound scheme van Windows CE 4.2 en hoger aan te passen. Na wat onderzoek (nee niet hacken ;o) ben ik er achter.
Je kan het Sound Scheme aanpassen en wel als volgt.
Allereerst heb je een goede registry editor nodig die overweg kan met REGSZ_MULTI values. Ik gebruik hiervoor TRE.

De sleutel tot de Sound Schemes in Windows CE 4.2 en hoger zit in Waveapi.dll en in het register.

Het register ziet er zo uit:

[HKLM\Snd\Scheme]
"Curr0"="Current Settings"

[HKLM\Snd\Event]
"EventMask"=dword:FFFFFF (EDIT =6xF)

[HKLM\Snd\Event]
"Curr0"=REGSZ_MULTI met in volgorde 21 Sound Events:
SystemAsterisk
Close
SystemHand
SystemDefault
EmptyRecycleBin
SystemExclamation
IRBegin
IREnd
IRIntr
MenuPopup
MenuCommand
Open
SystemQuestion
RNBegin
RNEnd
RNIntr
SystemStart
Maximize
Minimize
RecordStart
RecordEnd

Bij elk Event staat de naam van een WAV file die zich in \Windows bevindt. Je kan de WAV file in \Windows overschrijven.

Een lege "regel" in "Curr0" kan je zelf van een WAV filename (uit \Windows dir) voorzien.

Tweakradje

EDIT: Van microsoft zelf:
Waveform Audio registry settings en onderstaande Hiding System Sound Events
Platform Builder for Microsoft Windows CE 5.0

Hiding System Sound Events
The following system sound events are available through the shell:

Asterisk
Close
Critical
Default
Empty
Exclam
Infbeg
Infend
Infintr
MenuPop
MenuSel
OpenProg
Question
Netbeg
Netend
Netintr
Startup
WindMax
WindMin
RecStart
RecEnd
The Wceshellfe.reg file contains a mask you can use to hide system sound events that do not apply to a target device. The following registry key allows you to set the mask to disable sound events.

HKEY_LOCAL_MACHINE\Snd\Event
".Scheme"=".DefaultSounds"
"EventMask"=dword:FFFFFF
"EventCache"=dword:300
;Scheme descriptions
".NoSounds"=multi_sz:"","","","","","","","","","","","", "","","","","","","","",""
".DefaultSounds"=multi_sz:"Asterisk","","critical","default","","exclam","infbeg","infend","infintr","","","","question","Netbeg","Netend","Netintr","startup","","",""
".AllSounds"=multi_sz:"Asterisk","Close","critical","default","Empty","exclam","infbeg","infend","infintr","MenuPop","MenuSel","OpenProg","question","Netbeg","Netend","Netintr","startup","WindMax","WindMin","RecStart","RecEnd"
;
In the registry key, the Scheme setting specifies the current sound scheme. The NoSounds, DefaultSounds, and AllSounds schemes are defined, and DefaultSounds is specified as the current scheme.

The EventMask allows events that do not apply to a target device to be hidden. The mask is a DWORD initially set to FFFFF, which means all sounds are enabled. The following example shows show to set EventMask to disable Asterisk.

"EventMask"=dword:FFFFFE
The EventCache setting specifies the cache menu popup and menu select.

See Also
Control Panel Applications

[ Voor 95% gewijzigd door tweakradje op 15-02-2006 23:00 ]