MCI_RESUME

This MCI command message resumes a paused or stopped device. Support of this message by a device is optional.

Parameters

DWORD lParam1

The following flags apply to all devices supporting MCI_RESUME:


MCI_NOTIFY

Specifies that MCI should post the MM_MCINOTIFY message when this command completes. The window that receives this message is specified in the dwCallback field of the data structure identified by lParam2.

MCI_TEST

Queries the device to determine if it can execute the command. The device returns an error if it is incapable of executing the command. It returns no error if it can handle the command. MCI returns control to the application without executing the command.

MCI_WAIT

Specifies that the device should resume before MCI returns control to the application.

LPMCI_GENERIC_PARMS lParam2

Specifies a far pointer to the MCI_GENERIC_PARMS data structure.

Return Value

Returns zero if successful. Otherwise, it returns an MCI error code.

Comments

Specifies that playing or recording should continue from where it was interrupted by a pause. The ending position specified for MCI_PLAY or MCI_RECORD is remembered as well as any other flags that were specified.

If any commands have been issued with a notify, between the pause and the resume, then this would supersede any pending notify from the original play or record. When notify is used with resume, MCI notifies the application when the resumed play or record operation completes.

See Also

MCI_STOP, MCI_PLAY, MCI_RECORD