Group: Windows Multimedia - Library: winmm
MCIERROR mciSendCommand(
MCIDEVICEID IDDevice,
UINT uMsg,
DWORD fdwCommand,
DWORD_PTR dwParam
);
DECLARE INTEGER mciSendCommand IN winmm;
INTEGER IDDevice,;
LONG uMsg,;
LONG fdwCommand,;
LONG dwParam
IDDevice Device identifier of the MCI device that is to receive the command message. This parameter is not used with the MCI_OPEN command message.
uMsg Command message, a multimedia command.
fdwCommand Flags for the command message.
dwParam Pointer to a structure that contains parameters for the command message.
Returns zero if successful or an error otherwise. The low-order word of the returned DWORD value contains the error return value.
To retrieve a text description of return values, pass the return value to the mciGetErrorString function.
List of Multimedia Commands on MSDN.
See also: mciSendString, mciGetDeviceID.