###User Defined Function###
_WinAPI_PlaySound

###Description###
Plays a sound specified by the given file name, resource, or system event.

###Syntax###
#include <WinAPIMisc.au3>
_WinAPI_PlaySound ( $sSound [, $iFlags = 0 [, $hInstance = 0]] )


###Parameters###
@@ParamTable@@
$sSound
	The string that specifies the sound to play. The maximum length is 255 characters. If $sSound is
	empty, any currently playing waveform sound is stopped.
$iFlags
	[optional] The flags for sound playing. This parameter can be one or more of the following values.
	$SND_APPLICATION
	$SND_ALIAS
	$SND_ALIAS_ID
	$SND_ASYNC
	$SND_FILENAME
	$SND_LOOP
	$SND_MEMORY
	$SND_NODEFAULT
	$SND_NOSTOP
	$SND_NOWAIT
	$SND_PURGE
	$SND_RESOURCE
	$SND_SYNC

	<strong>Windows Vista or later</strong>
	$SND_SENTRY
	$SND_SYSTEM

	Three flags ($SND_ALIAS, $SND_FILENAME, and $SND_RESOURCE) determine whether the name is interpreted
	as an alias for a system event, a file name, or a resource identifier. If none of these flags are
	specified, <a href="_WinAPI_PlaySound.htm">_WinAPI_PlaySound()</a> searches the registry or the WIN.INI file for an association with
	the specified sound name. If an association is found, the sound event is played. If no association
	is found in the registry, the name is interpreted as a file name.

	If the $SND_ALIAS_ID flag is specified in $iFlags, the $sSound parameter must be one of the
	$SND_ALIAS_* values.
	(See MSDN for more information)
$hInstance
	[optional] Handle to the executable file that contains the resource to be loaded. If $iFlags does not
	contain the $SND_RESOURCE, this parameter will be ignored.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	True
Failure 	False
@@End@@


###Remarks###
None


###Related###


###See Also###
@@MsdnLink@@ PlaySound


###Example###
@@IncludeExample@@
