Поделиться через


mciExecute function

The mciExecute function sends a command to an MCI device. The device that the command is sent to is specified in the command string.

(Obsolete; retained for backward compatibility.)

Syntax

BOOL mciExecute(
   LPCSTR pszCommand
);

Parameters

  • pszCommand
    Pointer to a null-terminated string that specifies an MCI command string.

Return value

Returns TRUE if successful or FALSE if unsuccessful.

Remarks

This function is a simplified version of the mciSendString function. It does not take a buffer for return information, and it displays a message box when errors occur.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

MCI

MCI Functions