Expand Minimize

sndOpenSound function

Opens the specified sound event.

Syntax


HRESULT 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

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Mmiscapi.h

Library

Winmmbse.lib

DLL

Winmmbse.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.