public static uint joyGetNumDevs() { uint ret = 0; if ( status_winmm != DllStatus.NotFound ) { try { ret = __joyGetNumDevs(); } catch ( DllNotFoundException ex ) { status_winmm = DllStatus.NotFound; } } return ret; }