Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.43 KB

mciSendCommand.md

File metadata and controls

64 lines (43 loc) · 1.43 KB

Home

Function name : mciSendCommand

Group: Windows Multimedia - Library: winmm


Sends a command message to the specified MCI device.


Declaration:

MCIERROR mciSendCommand(
	MCIDEVICEID IDDevice,
	UINT uMsg,
	DWORD fdwCommand,
	DWORD_PTR dwParam
);  

FoxPro declaration:

DECLARE INTEGER mciSendCommand IN winmm;
	INTEGER IDDevice,;
	LONG uMsg,;
	LONG fdwCommand,;
	LONG dwParam
  

Parameters:

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.


Return value:

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.


Comments:

List of Multimedia Commands on MSDN.

See also: mciSendString, mciGetDeviceID.