@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Sets Sound Events !!!!C# Signature: [DllImport("aygshell.dll", SetLastError=true)] static extern uint SndSetSound(SND_EVENT soundEvent, SNDFILEINFO soundFileInfo, bool suppressUI); !!!!VB Signature: <DllImport("aygshell.dll", SetLastError:=True> _ Private Shared Function SndSetSound(ByVal seSoundEvent as SoundEvent, ByRef pSoundFileInfo as SNDFILEINFO, ByVal fSuppressUI as Boolean) as UInteger End Function !!!!User-Defined Types: _Enumerations_ Public Enum SoundEvent All = 0 RingLine1 RingLine2 KnownCallerLine1 RoamingLine1 RingVoip End Enum Enum SoundType [On] = 0 File = 1 Vibrate = 2 None = 3 End Enum _Structure SNDFILEINFO_ Private Structure SNDFILEINFO <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> _ Private szPathNameNative as String <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=260)> _ Private szDisplayNameNative as String Public sstType as SoundType End Structure !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: 'Sets Phone to Vibrate on All Events Dim sfi as New SNDFILEINFO() sfi.sstType = SoundType.Vibrate SndSetSound(SoundEvent.All, sfi, True) Documentation: http://msdn.microsoft.com/en-us/library/bb416592.aspx
Edit aygshell.SndSetSound
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.