הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Opens the specified sound event.
Syntax
LONG sndOpenSound(
LPCWSTR EventName,
LPCWSTR AppName,
INT32 Flags,
PHANDLE FileHandle
);
Parameters
EventName
The name of the sound event.
AppName
The application associated with the sound event.
Flags
Flags for playing the sound. The following values are defined.
FileHandle
Receives the handle to the sound.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8.1 [desktop apps only] |
| Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | mmiscapi.h |
| Library | Winmmbse.lib |
| DLL | Winmmbse.dll |