Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
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 SNDFILEINFOstructure 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 SNDFILEINFOstructure.

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