Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "winmm" in winmm

9: !!!!
10: !!!
11: !
.

[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

.

[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")]

. .

[DllImport("winmm.dll")]

.

Declare Function midiConnect Lib "winmm.dll" (TODO) As TODO

. .

[DllImport("winmm.dll")]

.

Declare Function midiDisconnect Lib "winmm.dll" (TODO) As TODO

.

Declare Function MIDIHDR Lib "winmm.dll" (TODO) As TODO

.

[DllImport("winmm.dll", SetLastError = true)]

.

    [DllImport("winmm.dll", SetLastError = true)]

.

[DllImport("winmm.dll", SetLastError = true)]

.

[DllImport("winmm.dll", SetLastError=true)]

.

Declare Function midiInOpen Lib "winmm.dll" (TODO) As TODO

.

    [DllImport("winmm.dll", SetLastError = true)]

.

[DllImport("winmm.dll", SetLastError = true)]

.

[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

.

    [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

.

[DllImport("winmm.dll")]

.

Declare Function midiOutShortMsg Lib "winmm.dll" (hMidiOut As Intptr,dwMsg As UInt32) As UInt32

.

[DllImport("winmm.dll")]

.

Public Declare Function midiStreamClose Lib "winmm.dll" (ByVal hMidiStream As IntPtr) As Integer

.

[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

.

[DllImport("winmm.dll")]

.

Declare Function midiStreamOut Lib "winmm.dll" (ByVal hMidiStream As IntPtr, ByVal lpMidiHdr As MIDIHDR, ByVal cbMidiHdr As UInteger) As Integer

.

[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")]

.

[DllImport("winmm.dll")]

.

DllImport("winmm.dll")]

.

Declare Function mixerClose Lib "winmm.dll" (ByVal hmx As IntPtr) As Integer

.

[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)]

.

   [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)]

.

[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")]

.

[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")]

.

[DllImport("winmm.dll", SetLastError=true)]

.

Declare Function mixerGetNumDevs Lib "winmm.dll" () As UInt32

.

[DllImport("winmm.dll", SetLastError=true)]

.

Public Declare Function mixerGetNumDevs Lib "winmm.dll" () As Integer

.

[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)]

.
Summary
Enumeration for the MMRESULT possible values in winmm.dll
.

[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

.

[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)

.

[DllImport("winmm.dll", EntryPoint="timeEndPeriod")]

.

Declare Function timeEndPeriod Lib "winmm.dll" (ByVal uPeriod As Integer) As Integer

.

[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

.

[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

.

[DllImport("winmm.dll", SetLastError=true)]

.

Declare Function timeKillEvent Lib "winmm.dll" (TODO) As TODO

.

[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.


 
Access PInvoke.net directly from VS: