Share via


SndGetSound

Send Feedback

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

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 Values

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

Pocket PC: Windows Mobile Version 5.0 and later
Smartphone: Windows Mobile Version 5.0 and later
OS Versions: Windows CE 5.0 and later
Header: Soundfile.h

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.