Desktop Functions: Smart Device Functions:
|
Search Results for "winmm" in winmm5: !!!!!!!!!!! 6: !!!!!!! 7: !!!!!! 8: !!!!! 9: !!!! 10: !!! 11: ! 12: lorem29 13: lorem33 14: lorem38
[DllImport("winmm.dll")]
<DllImport("winmm.dll")> _
Public Declare Auto Function mciGetErrorString Lib "winmm.dll" (ByVal errorCode As Integer, ByRef errorText As StringBuilder, ByVal errorTextSize As Integer) As Integer 16: mciSendString
[DllImport("winmm.dll")]
<DllImport("winmm.dll")> _
Declare Ansi Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal command As String, ByRef buffer As StringBuilder, ByVal bufferSize As Integer, ByVal hWndCallback As IntPtr) As Integer
[DllImport("winmm.dll")] 17: midiConnect
[DllImport("winmm.dll")]
Declare Function midiConnect Lib "winmm.dll" (TODO) As TODO 18: midiDisconnect
[DllImport("winmm.dll")]
Declare Function midiDisconnect Lib "winmm.dll" (TODO) As TODO 19: MIDIHDR
Declare Function MIDIHDR Lib "winmm.dll" (TODO) As TODO 20: midiInClose
[DllImport("winmm.dll", SetLastError = true)] 21: midiInGetDevCaps
[DllImport("winmm.dll", SetLastError = true)] 22: midiInGetNumDevs
[DllImport("winmm.dll", SetLastError = true)] 23: midiInOpen
[DllImport("winmm.dll", SetLastError=true)]
Declare Function midiInOpen Lib "winmm.dll" (TODO) As TODO 24: midiInReset
[DllImport("winmm.dll", SetLastError = true)] 25: midiInStart
[DllImport("winmm.dll", SetLastError = true)] 26: MIDIOUTCAPS 27: midiOutClose
[DllImport("winmm.dll")]
Declare Function midiOutClose Lib "winmm.dll" (ByRef phMidiOut As IntPtr) As Uinteger
[DllImport("winmm.dll", SetLastError = true)]
[DllImport("winmm.dll", SetLastError = true)]
[DllImport("Winmm.dll")]
[DllImport("winmm.dll")]
Declare Function midiOutGetErrorText Lib "winmm.dll" (TODO) As TODO
[DllImport("winmm.dll", SetLastError=true)]
Declare Function midiOutGetNumDevs Lib "winmm.dll" () As uint 31: midiOutOpen
[DllImport("winmm.dll")]
<DllImport("winmm.dll")> Shared Function midiOutOpen(ByRef lphMidiOut As IntPtr, ByVal uDeviceID As UInteger, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal dwFlags As UInteger) As UInteger 32: midiOutShortMsg
[DllImport("winmm.dll")]
Declare Function midiOutShortMsg Lib "winmm.dll" (hMidiOut As Intptr,dwMsg As UInt32) As UInt32 33: midiStreamClose
[DllImport("winmm.dll")]
Public Declare Function midiStreamClose Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer 34: midiStreamOpen
[DllImport("winmm.dll")]
Public Declare Function midiStreamOpen Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal puDeviceId As IntPtr, ByVal cMidi As Integer, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal fdwOpen As Integer) As Integer 35: midiStreamOut
[DllImport("winmm.dll")]
Declare Function midiStreamOut Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal lpMidiHdr As MIDIHDR, ByVal cbMidiHdr As UInteger) As Integer 36: midiStreamPause
[DllImport("winmm.dll")]
Declare Function midiStreamPause Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer
[DllImport("winmm.dll")]
Declare Function midiStreamPosition Lib "winmm.dll" (ByVal hms As IntPtr, ByVal pmmt As MMTIME, ByVal cbmmt As UInteger) As Integer
[DllImport("winmm.dll")]
Declare Function midiStreamProperty Lib "winmm.dll" (TODO) As TODO
[DllImport("winmm.dll")] 40: midiStreamStop
[DllImport("winmm.dll")] 41: mixerClose
DllImport("winmm.dll")]
Declare Function mixerClose Lib "winmm.dll" (ByVal hmx As IntPtr) As Integer 42: MixerFlags
[DllImport("winmm.dll")]
Declare Function mixerGetControlDetails Lib "winmm.dll" (<MarshalAs(UnmanagedType.I4)> ByVal hmxobj As Integer, ByRef pmxcd As MIXERCONTROLDETAILS, ByVal fdwDetails As Integer) As Integer The winmm dll may not execute properly on 64-bit systems. Consequently, the StructLayout must be Sequential, with CharSet = Ansi, and Pack = 4. This particular type has some special layout considerations (the c union keyword) which typically means developers would use the explicit layout. However, the explicit layout breaks down on 64-bit systems for any type with an IntPtr in the type. Consequently, the C# types have been redesigned to use Sequential layout so that they will automatically adjust to 64-bit systems. This means private fields with public properties which perform the gunky work of making it look like there is a union. The fdwDetailsmixer parameter can be composed constants from two distinct enumerations, one of which is used frequently in the winmm library, and the other constant is only used with this method. Consequently, you should wrap up the method definition so that it is easier to use, and more consistent. In the following example, the actual extern is private, while the public static method lists both enums to callers.
[DllImport("winmm.dll", CharSet = CharSet.Unicode)] 44: mixerGetDevCaps
[DllImport("winmm.dll", EntryPoint="mixerGetDevCaps", SetLastError=true)]
<DllImport("winmm.dll", EntryPoint:="mixerGetDevCaps", SetLastError:=True)> _
[DllImport("winmm.dll", EntryPoint = "mixerGetNumDevs")]
[DllImport("winmm.dll", EntryPoint = "mixerGetDevCaps", SetLastError = true)] 45: mixerGetID
[DllImport("winmm.dll", SetLastError=true)]
<DllImport("winmm.dll")> _
[DllImport("winmm.dll")]
Declare Function mixerGetLineControls Lib "winmm.dll" (hmxobj As IntPtr, _ The fdwControls parameter can be composed constants from two distinct enumerations, one of which is used frequently in the winmm library, and the other constant is only used with this method. Consequently, you should wrap up the method definition so that it is easier to use, and more consistent. In the following example, the actual extern is private, while the public static method lists both enums to callers.
[DllImport("winmm.dll")] 47: mixerGetLineInfo
[DllImport("winmm.dll")]
<DllImport("winmm.dll")> _ The fdwInfo parameter can be composed constants from two distinct enumerations, one of which is used frequently in the winmm library, and the other constant is only used with this method. Consequently, you should wrap up the method definition so that it is easier to use, and more consistent. In the following example, the actual extern is private, while the public static method lists both enums to callers.
[DllImport("winmm.dll")] 48: mixerGetNumDevs
[DllImport("winmm.dll", SetLastError=true)]
Declare Function mixerGetNumDevs Lib "winmm.dll" () As UInt32 49: mixerGetNumDevs
[DllImport("winmm.dll", SetLastError=true)] Public Declare Function mixerGetNumDevs Lib "winmm.dll" () As Integer 50: mixerOpen
[DllImport("winmm.dll")]
Declare Function mixerOpen Lib "winmm.dll" (ByRef phmx As IntPtr, ByVal pMxId As UInteger, ByVal dwCallback As IntPtr, ByVal dwInstance As IntPtr, ByVal fdwOpen As UInteger) As Integer
[DllImport("winmm.dll")]
Declare Function mixerSetControlDetails Lib "winmm.dll" (ByVal hmxobj As IntPtr, ByVal pmxcd As MIXERCONTROLDETAILS, ByVal fdwDetails As Integer) As Integer The winmm dll may not execute properly on 64-bit systems. Consequently, the StructLayout must be Sequential, with CharSet = Ansi, and Pack = 4. This particular type has some special layout considerations (the c union keyword) which typically means developers would use the explicit layout. However, the explicit layout breaks down on 64-bit systems for any type with an IntPtr in the type. Consequently, the C# types have been redesigned to use Sequential layout so that they will automatically adjust to 64-bit systems. This means private fields with public properties which perform the gunky work of making it look like there is a union. The fdwDetails parameter can be composed constants from two distinct enumerations, one of which is used frequently in the winmm library, and the other constant is only used with this method. Consequently, you should wrap up the method definition so that it is easier to use, and more consistent. In the following example, the actual extern is private, while the public static method lists both enums to callers.
[DllImport("winmm.dll", CharSet = CharSet.Unicode)] 52: MMRESULT
53: PlaySound
[DllImport("winmm.dll", SetLastError=true)]
[DllImport("winmm.dll", SetLastError=true)]
<DllImport("winmm.dll")> _
Public Declare Auto Function PlaySound Lib "winmm.dll" (ByVal pszSound As String, ByVal hmod As IntPtr, ByVal fdwSound As Integer) As Boolean
Public Declare Auto Function PlaySound Lib "winmm.dll" (ByVal pszSound As Byte(), ByVal hmod As IntPtr, ByVal fdwSound As SoundFlags) As Boolean 54: timeBeginPeriod
[DllImport("winmm.dll", EntryPoint="timeBeginPeriod")]
Declare Function timeBeginPeriod Lib "winmm.dll" (ByVal uPeriod As Integer) As Integer Also see TimeGetTime (MM_GetTime) and TimeEndPeriod (MM_EndPeriod) 55: timeEndPeriod
[DllImport("winmm.dll", EntryPoint="timeEndPeriod")]
Declare Function timeEndPeriod Lib "winmm.dll" (ByVal uPeriod As Integer) As Integer 56: timeGetDevCaps
[DllImport("winmm.dll", SetLastError=true)] Declare Function timeGetDevCaps Lib "winmm.dll" (ByRef lpTimeCaps As TimeCaps, ByVal uSize As UInt32) As UInt32
[DllImport("winmm.dll", SetLastError=true)]
Declare Function timeGetSystemTime Lib "winmm.dll" (TODO) As TODO 58: timeGetTime
[DllImport("winmm.dll", EntryPoint="timeGetTime")]
<DllImport("winmm.dll", EntryPoint := "timeGetTime")> _ Unlike Environment.TickCount, you can directly set the resolution of this timer with the TimeBeginPeriod function. See TimeBeginPeriod (imported as MM_BeginPeriod) and TimeEndPeriod (imported as MM_EndPeriod) See TimeBeginPeriod for a sample 59: timeKillEvent
[DllImport("winmm.dll", SetLastError=true)]
Declare Function timeKillEvent Lib "winmm.dll" (TODO) As TODO 60: timeSetEvent
[DllImport("winmm.dll", SetLastError=true)]
Declare Function timeSetEvent Lib "winmm.dll" (TODO) As TODO
[DllImport("Winmm.dll", CharSet = CharSet.Auto)]
[DllImport("Winmm.dll", CharSet = CharSet.Auto)]
[DllImport("Winmm.dll", CharSet = CharSet.Auto)]
[DllImport("Winmm.dll", CharSet = CharSet.Auto)]
[DllImport("Winmm.dll", CharSet = CharSet.Auto)] Cut off search results after 60. Please refine your search. |