 |
sndPlaySound ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The sndPlaySound function plays a waveform sound specified either by a filename or by an entry in the registry or the WIN.INI file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL sndPlaySound(
LPCSTR lpszSound,
UINT fuSound
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER sndPlaySound IN winmm;
STRING lpszSound,;
INTEGER fuSound
|
 |
 |
 |
| Parameters: |
 |
lpszSound
A string that specifies the sound to play.
fuSound
Flags for playing the sound. |
 |
 |
| Return value: |
 |
| Returns TRUE if successful or FALSE otherwise. |
 |
 |
| Usage: |
 |
= sndPlaySound("c:\windows\media\tada.wav",;
SND_ASYNC + SND_NODEFAULT)
|
 |
 |
| My comment: |
 |
This function offers a subset of the functionality of the PlaySound function; sndPlaySound is being maintained for backward compatibility.
The PlaySound plays sound specified either by a file name, or by an entry in the registry, or by a resource identifier.
MSDN: the lpszSound parameter can be either an entry in the registry or in WIN.INI that identifies a system sound, or it can be the name of a waveform-audio file.
If the function does not find the entry, the parameter is treated as a filename. If this parameter is NULL, any currently playing sound is stopped.
See also: PlaySound
|
 |
 |
| Word Index links for the sndPlaySound : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-01-14 20:27:12 | | Modified: | 2008-03-25 15:41:41 | Visited in last 7 days: 43 |