public static uint midiInGetDevCaps(uint uDeviceID, ref MIDIINCAPS lpMidiInCaps, uint cbMidiInCaps) { uint ret = MMSYSERR_ERROR; if (status_winmm != DllStatus.NotFound) { try { ret = __midiInGetDevCaps(uDeviceID, ref lpMidiInCaps, cbMidiInCaps); status_winmm = DllStatus.Found; } catch (DllNotFoundException ex) { status_winmm = DllStatus.NotFound; } } else if (status_winmm_so != DllStatus.NotFound) { try { ret = __so_midiInGetDevCaps(uDeviceID, ref lpMidiInCaps, cbMidiInCaps); } catch (DllNotFoundException ex) { status_winmm_so = DllStatus.NotFound; } } return(ret); }
public static uint midiInGetDevCaps( uint uDeviceID, ref MIDIINCAPS lpMidiInCaps, uint cbMidiInCaps ) { uint ret = MMSYSERR_ERROR; if ( status_winmm != DllStatus.NotFound ) { try { ret = __midiInGetDevCaps( uDeviceID, ref lpMidiInCaps, cbMidiInCaps ); status_winmm = DllStatus.Found; } catch ( DllNotFoundException ex ) { status_winmm = DllStatus.NotFound; } } else if ( status_winmm_so != DllStatus.NotFound ) { try { ret = __so_midiInGetDevCaps( uDeviceID, ref lpMidiInCaps, cbMidiInCaps ); } catch ( DllNotFoundException ex ) { status_winmm_so = DllStatus.NotFound; } } return ret; }
private static extern uint __so_midiInGetDevCaps( [MarshalAs( UnmanagedType.U4 )]uint uDeviceID, ref MIDIINCAPS lpMidiInCaps, [MarshalAs( UnmanagedType.U4 )]uint cbMidiInCaps );
private static extern uint __so_midiInGetDevCaps([MarshalAs(UnmanagedType.U4)] uint uDeviceID, ref MIDIINCAPS lpMidiInCaps, [MarshalAs(UnmanagedType.U4)] uint cbMidiInCaps);