Click to See Complete Forum and Search --> : MessageBeep sound type?
sajidm
July 12th, 1999, 12:13 AM
Hi,
How can i find IDs of System sounds to pass ID to MessageBeep(ID) function.The documentation says these are defind in [sounds] section of registry,I can't find. I want to pass ID of "ringin.wav" or any other sound other than default sound.
Thanx.
sajid.
Karl
July 12th, 1999, 03:34 AM
Following the documentation:
BOOL MessageBeep( UINT uType // sound type);
Parameters
uType
Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values:
Value Sound
0xFFFFFFFF Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault
So, you don't precise the wav file you want to play, but the type of sound. the association type / file is a system "property".
HTH.
K.
Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
sally
July 12th, 1999, 08:15 AM
and all the other system sounds?
Sally
Sally
July 12th, 1999, 08:15 AM
and all the other system sounds?
Sally
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.