Share via


SndGetSound

4/8/2010

This function returns the current sound file for the indicated sound event.

Syntax

HRESULT SndGetSound (
   SND_EVENT seSoundEvent,
   SNDFILEINFO* pSoundFileInfo
);

Parameters

  • seSoundEvent
    [in] Indicates the type of sound event you wish to query.
  • pSoundFileInfo
    [out] Caller should pass in a pointer to a SNDFILEINFO structure that will be filled in by this function.

Return Value

The function may return any HRESULT and the application should use the SUCCEEDED and FAILED macros to check the results.

Remarks

This function returns the current sound file for the specified sound event. The fully qualified file path along with the friendly file name of the sound event file are returned in pSoundFileInfo. This function needs a pointer to a valid SNDFILEINFO structure.

Requirements

Header soundfile.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Concepts

Sounds Reference