Implemented mciExecute.
This commit is contained in:
parent
7081395019
commit
af524f54c0
@ -2175,3 +2175,23 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpwstrCommand, LPSTR lpstrReturnString,
|
||||
HeapFree(GetProcessHeap(), 0, lpstrCommand);
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user