Like mciSendString, mciExecute also sends command strings to MCI. The mciExecute function relies on MMSYSTEM to display error messages and it cannot get return information; thus, it uses fewer parameters than mciSendString. It has the following syntax:
BOOL FAR PASCAL mciExecute(lpstrCommand)
MMSYSTEM displays error messages in a message box. The name of the destination device appears as the message-box title.