Implemented mciExecute.

This commit is contained in:
Eric Pouech 1999-03-22 14:50:08 +00:00 committed by Alexandre Julliard
parent 7081395019
commit af524f54c0

View File

@ -78,7 +78,7 @@ _MCISTR_printtf(char *buf, UINT16 uDevType, DWORD timef, DWORD val)
MCI_TMSF_TRACK(val), MCI_TMSF_TRACK(val),
MCI_TMSF_MINUTE(val), MCI_TMSF_MINUTE(val),
MCI_TMSF_SECOND(val), MCI_TMSF_SECOND(val),
MCI_TMSF_FRAME(val) ); MCI_TMSF_FRAME(val));
break; break;
default: default:
FIXME(mci, "missing timeformat for %ld, report.\n",timef); FIXME(mci, "missing timeformat for %ld, report.\n",timef);
@ -2175,3 +2175,23 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpwstrCommand, LPSTR lpstrReturnString,
HeapFree(GetProcessHeap(), 0, lpstrCommand); HeapFree(GetProcessHeap(), 0, lpstrCommand);
return ret; return ret;
} }
/**************************************************************************
* mciExecute [WINMM.38]
*/
DWORD WINAPI mciExecute(LPCSTR lpstrCommand)
{
char strRet[256];
DWORD ret;
FIXME(mci, "(%s) stub!\n", lpstrCommand);
ret = mciSendString16(lpstrCommand, strRet, sizeof(strRet), 0);
if (ret != 0) {
if (!mciGetErrorString16(ret, strRet, sizeof(strRet))) {
sprintf(strRet, "Unknown MCI Error (%ld)", ret);
}
MessageBoxA(0, strRet, "Error in mciExecute()", MB_OK);
}
return 0;
}