![]() ''' 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:
0 Comments
Leave a Reply. |