Desktop Functions: Smart Device Functions:
|
Search Results for "SND" in [All]user321: MessageBeep With the enum beepType you get intellisense when you type "beep." and you can then select the kind of beep you want. For dylan.NET, use the fields containing the integer values inside the WinSnd class of dnu.dll at http://dylandotnetapps.codeplex.com/ winmm2: PlaySound
SND_SYNC = 0x0000,
SND_ASYNC = 0x0001,
SND_NODEFAULT = 0x0002,
SND_MEMORY = 0x0004,
/// <summary>loop the sound until next sndPlaySound</summary>
SND_LOOP = 0x0008,
SND_NOSTOP = 0x0010,
SND_PURGE = 0x40,
/// <summary>The pszSound parameter is an application-specific alias in the registry. You can combine this flag with the SND_ALIAS or SND_ALIAS_ID flag to specify an application-defined sound alias.</summary>
SND_APPLICATION = 0x80,
SND_NOWAIT = 0x00002000,
SND_ALIAS = 0x00010000,
SND_ALIAS_ID = 0x00110000,
SND_FILENAME = 0x00020000,
SND_RESOURCE = 0x00040004
SND_SYNC = &H0
SND_ASYNC = &H1
SND_NODEFAULT = &H2
SND_MEMORY = &H4
''' set, you must also set the SND_ASYNC flag.
SND_LOOP = &H8
SND_NOSTOP = &H10
SND_PURGE = &H40
''' the registry. You can combine this flag with the SND_ALIAS
''' or SND_ALIAS_ID flag to specify an application-defined sound
SND_APPLICATION = &H80
SND_NOWAIT = &H2000
''' SND_FILENAME or SND_RESOURCE.
SND_ALIAS = &H10000
''' SND_NODEFAULT flag is set.
SND_FILENAME = &H20000
SND_RESOURCE = &H40004 To play a sound looping both SND_LOOP and SND_ASYNC flags have to be specified. Looped sounds only stop when PlaySound is called with pszSound set to NULL.
PlaySound (strFileName, UIntPtr.Zero, (uint)(SoundFlags.SND_FILENAME | SoundFlags.SND_ASYNC));
public static void Play (byte[] waveData) //bad idea, see http://blogs.msdn.com/larryosterman/archive/2009/02/19/playsound-xxx-snd-memory-snd-async-is-almost-always-a-bad-idea.aspx
PlaySound (waveData, IntPtr.Zero, PlayFlags.SND_ASYNC | PlayFlags.SND_MEMORY);
PlaySound(strFileName, IntPtr.Zero, SoundFlags.SND_FILENAME Or SoundFlags.SND_ASYNC)
Public Shared Sub Play(ByVal waveData As Byte()) //bad idea, see http://blogs.msdn.com/larryosterman/archive/2009/02/19/playsound-xxx-snd-memory-snd-async-is-almost-always-a-bad-idea.aspx
PlaySound(waveData, IntPtr.Zero, SoundFlags.SND_ASYNC Or SoundFlags.SND_MEMORY) aygshell3: SndGetSound
Private Shared Function SndGetSound(ByVal seSoundEvent as SoundEvent, ByRef pSoundFileInfo as SNDFILEINFO) as UInteger Declaration of SNDFILEINFO
Private Structure SNDFILEINFO
Dim sfi as New SNDFILEINFO
SndGetSound(SoundEvent.All, sfi) 4: SndPlaySync
5: SndSetSound static extern uint SndSetSound(SND_EVENT soundEvent, SNDFILEINFO soundFileInfo, bool suppressUI);
Private Shared Function SndSetSound(ByVal seSoundEvent as SoundEvent, ByRef pSoundFileInfo as SNDFILEINFO, ByVal fSuppressUI as Boolean) as UInteger Structure SNDFILEINFO
Private Structure SNDFILEINFO
Dim sfi as New SNDFILEINFO()
SndSetSound(SoundEvent.All, sfi, True) kernel32
FsctlEnumUsnData = (EFileDevice.FileSystem << 16) | (44 << 2) | EMethod.Neither | (0 << 14),
FsctlReadFileUsnData = (EFileDevice.FileSystem << 16) | (58 << 2) | EMethod.Neither | (0 << 14), coredll7: PlaySound
SND_SYNC = &H0 ' play synchronously (default)
SND_ASYNC = &H1 ' play asynchronously
SND_NODEFAULT = &H2 ' silence (!default) if sound not found
SND_MEMORY = &H4 ' pszSound points to a memory file
SND_LOOP = &H8 ' loop the sound until next sndPlaySound
SND_NOSTOP = &H10 ' don't stop any currently playing sound
SND_NOWAIT = &H2000 ' don't wait if the driver is busy
SND_ALIAS = &H10000 ' name is a registry alias
SND_ALIAS_ID = &H110000 ' alias is a predefined ID
SND_FILENAME = &H20000 ' name is file name
SND_RESOURCE = &H40004 ' name is resource name or atom
SND_SYNC = 0x0, // play synchronously (default)
SND_ASYNC = 0x1, // play asynchronously
SND_NODEFAULT = 0x2, // silence (!default) if sound not found
SND_MEMORY = 0x4, // pszSound points to a memory file
SND_LOOP = 0x8, // loop the sound until next sndPlaySound
SND_NOSTOP = 0x10, // don't stop any currently playing sound
SND_NOWAIT = 0x2000, // don't wait if the driver is busy
SND_ALIAS = 0x10000, // name is a registry alias
SND_ALIAS_ID = 0x110000, // alias is a predefined ID
SND_FILENAME = 0x20000, // name is file name
SND_RESOURCE = 0x40004, // name is resource name or atom
SND_SYNC = 0x0, // play synchronously (default)
SND_ASYNC = 0x1, // play asynchronously
SND_NODEFAULT = 0x2, // silence (!default) if sound not found
SND_MEMORY = 0x4, // pszSound points to a memory file
SND_LOOP = 0x8, // loop the sound until next sndPlaySound
SND_NOSTOP = 0x10, // don't stop any currently playing sound
SND_NOWAIT = 0x2000, // don't wait if the driver is busy
SND_ALIAS = 0x10000, // name is a registry alias
SND_ALIAS_ID = 0x110000,// alias is a predefined ID
SND_FILENAME = 0x20000, // name is file name
SND_RESOURCE = 0x40004, // name is resource name or atom
PlaySound(fileName, IntPtr.Zero, (PlaySoundFlags.SND_FILENAME | PlaySoundFlags.SND_SYNC));
SND_SYNC = &H0 ' play synchronously (default)
SND_ASYNC = &H1 ' play asynchronously
SND_NODEFAULT = &H2 ' silence (!default) if sound not found
SND_MEMORY = &H4 ' pszSound points to a memory file
SND_LOOP = &H8 ' loop the sound until next sndPlaySound
SND_NOSTOP = &H10 ' don't stop any currently playing sound
SND_NOWAIT = &H2000 ' don't wait if the driver is busy
SND_ALIAS = &H10000 ' name is a registry alias
SND_ALIAS_ID = &H110000 ' alias is a predefined ID
SND_FILENAME = &H20000 ' name is file name
SND_RESOURCE = &H40004 ' name is resource name or atom
PlaySound(fileName, IntPtr.Zero, PlaySoundFlags.SND_FILENAME Or _
PlaySoundFlags.SND_SYNC) Constants8: SND
9: TCM_
// (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
// (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
// (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
// (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
// (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
// (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))
// (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
// (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
// (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))
// (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
// (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
// (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))
// (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
// (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)
// (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
// (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
// (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
// (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
// (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
// SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
// (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
// (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
// (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))
// (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
// (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
' (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
' (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
' (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
' (BOOL)SNDMSG((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
' (BOOL)SNDMSG((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM FAR*)(pitem))
' (int)SNDMSG((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM FAR*)(pitem))
' (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
' (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
' (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT FAR*)(prc))
' (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
' (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
' (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO FAR*)(pinfo))
' (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
' (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT FAR *)prc)
' (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
' (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
' (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
' (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
' (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
' SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
' (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
' (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
' (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG (fHighlight, 0))
' (DWORD)SNDMSG((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
' (DWORD)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0) ws2_32
SO_SNDBUF = 0x1001,
SO_SNDLOWAT = 0x1003,
SO_SNDTIMEO = 0x1005, 11: WSASocket
SO_SNDBUF = 0x1001,
SO_SNDLOWAT = 0x1003,
SO_SNDTIMEO = 0x1005, |