public static uint midiInStart( uint hMidiIn ) {
uint ret = MMSYSERR_ERROR;
if ( status_winmm != DllStatus.NotFound ) {
try {
ret = __midiInStart( hMidiIn );
} catch ( DllNotFoundException ex ) {
status_winmm = DllStatus.NotFound;
}
} else if ( status_winmm_so != DllStatus.NotFound ) {
try {
ret = __so_midiInStart( hMidiIn );
} catch ( DllNotFoundException ex ) {
status_winmm_so = DllStatus.NotFound;
}
}
return ret;
}