1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
mp_DonneeMidi = new MIDIHDR();
ret_val = midiInPrepareHeader(m_HandleMidi,mp_DonneeMidi,sizeof(*mp_DonneeMidi));
switch(ret_val)
{
case MMSYSERR_INVALHANDLE: TRACE("\nPrepareHeader MMSYSERR_INVALHANDLE The specified device handle is invalid.");
return false;
case MMSYSERR_INVALPARAM: TRACE("\nPrepareHeader MMSYSERR_INVALPARAM The specified address is invalid.");
return false;
case MMSYSERR_NOMEM: TRACE("\nPrepareHeader MMSYSERR_NOMEM The system is unable to allocate or lock memory.");
return false;
case MMSYSERR_NOERROR : break;
}
return true; |