예제 #1
0
파일: winmm.cs 프로젝트: kixtarte/cadencii
 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;
 }
예제 #2
0
파일: winmm.cs 프로젝트: kixtarte/cadencii
 private static extern uint __so_midiInGetDevCaps( [MarshalAs( UnmanagedType.U4 )]uint uDeviceID, ref MIDIINCAPS lpMidiInCaps, [MarshalAs( UnmanagedType.U4 )]uint cbMidiInCaps );