

''' The pszSound parameter is a file name. ''' The pszSound parameter is a system-event alias in the
#Vb.net play sound driver
''' If the driver is busy, return immediately without playing ''' or SND_ALIAS_ID flag to specify an application-defined sound You can combine this flag with the SND_ALIAS ''' The pszSound parameter is an application-specific alias in ''' to stop the currently playing sound so that the device can ''' If this flag is not specified, PlaySound attempts ''' another sound, the function immediately returns False without

''' the resource needed to generate that sound is busy playing ''' The specified sound event will yield to another sound event ''' set, you must also set the SND_ASYNC flag. ''' with the pszSound parameter set to NULL. ''' The sound plays repeatedly until PlaySound is called again ''' The pszSound parameter points to a sound loaded in memory.

''' PlaySound returns silently without playing the default sound. ''' asynchronously played waveform sound, call PlaySound with ''' immediately after beginning the sound. ''' The sound is played asynchronously and PlaySound returns ''' The sound is played synchronously, and PlaySound returns after You can combine this flag with the SND_ALIAS or SND_ALIAS_ID flag to specify an application-defined sound alias. / The pszSound parameter is an application-specific alias in the registry. / don't stop any currently playing sound / loop the sound until next sndPlaySound / silence (!default) if sound not found You will need these flags for the fdwSound parameter Public Declare Auto Function PlaySound Lib "winmm.dll" (ByVal pszSound As Byte(), ByVal hmod As IntPtr, ByVal fdwSound As SoundFlags) As Boolean Public Declare Auto Function PlaySound Lib "winmm.dll" (ByVal pszSound As String, ByVal hmod As IntPtr, ByVal fdwSound As Integer) As Boolean Static extern bool PlaySound(byte pszSound, IntPtr hmod, SoundFlags fdwSound) Static extern bool PlaySound(string pszSound, UIntPtr hmod, uint fdwSound) Plays a PCM sound file from a filename, resource name or registry alias C# Signature:
