Beispiel #1
0
        public static uint midiOutGetDevCapsA(uint uDeviceID, ref MIDIOUTCAPSA pMidiOutCaps, uint cbMidiOutCaps)
        {
            uint ret = MMSYSERR_ERROR;

            if (status_winmm != DllStatus.NotFound)
            {
                try {
                    ret = __midiOutGetDevCapsA(uDeviceID, ref pMidiOutCaps, cbMidiOutCaps);
                } catch (DllNotFoundException ex) {
                    status_winmm = DllStatus.NotFound;
                }
            }
            else if (status_winmm_so != DllStatus.NotFound)
            {
                try {
                    ret = __so_midiOutGetDevCapsA(uDeviceID, ref pMidiOutCaps, cbMidiOutCaps);
                } catch (DllNotFoundException ex) {
                    status_winmm_so = DllStatus.NotFound;
                }
            }
            return(ret);
        }
Beispiel #2
0
 public static uint midiOutGetDevCapsA( uint uDeviceID, ref MIDIOUTCAPSA pMidiOutCaps, uint cbMidiOutCaps ) {
     uint ret = MMSYSERR_ERROR;
     if ( status_winmm != DllStatus.NotFound ) {
         try {
             ret = __midiOutGetDevCapsA( uDeviceID, ref pMidiOutCaps, cbMidiOutCaps );
         } catch ( DllNotFoundException ex ) {
             status_winmm = DllStatus.NotFound;
         }
     } else if ( status_winmm_so != DllStatus.NotFound ) {
         try {
             ret = __so_midiOutGetDevCapsA( uDeviceID, ref pMidiOutCaps, cbMidiOutCaps );
         } catch ( DllNotFoundException ex ) {
             status_winmm_so = DllStatus.NotFound;
         }
     }
     return ret;
 }
Beispiel #3
0
 private static extern uint __so_midiOutGetDevCapsA( [MarshalAs( UnmanagedType.U4 )] uint uDeviceID,
                                                ref MIDIOUTCAPSA pMidiOutCaps,
                                                [MarshalAs( UnmanagedType.U4 )] uint cbMidiOutCaps );
Beispiel #4
0
 private static extern uint __so_midiOutGetDevCapsA([MarshalAs(UnmanagedType.U4)] uint uDeviceID,
                                                    ref MIDIOUTCAPSA pMidiOutCaps,
                                                    [MarshalAs(UnmanagedType.U4)] uint cbMidiOutCaps);