MCI_DELETE

Removes data from the MCI element. Support of this message by a device is optional. The parameters and flags for this message vary according to the selected device.

DWORD lParam1
The following flags apply to all devices supporting MCI_DELETE:
MCI_NOTIFY Specifies that MCI should post the MM_MCINOTIFY message when this command completes. The window to receive this message is specified in the dwCallback member of the structure identified by lParam2.
MCI_WAIT Specifies that the delete operation should finish before MCI returns control to the application.

LPMCI_GENERIC_PARMS lParam2
Specifies a far pointer to an MCI_GENERIC_PARMS structure. (Devices with extended command sets might replace this structure with a device-specific structure.)

Waveform Audio Extensions

The following extensions for lParam1 apply to wave audio devices:

MCI_FROM Specifies that a beginning position is included in the dwFrom member of the structure identified by lParam2. The units assigned to the position values is specified with the MCI_SET_TIME_FORMAT flag of the MCI_SET command.
MCI_TO Specifies that an ending position is included in the dwTo member of the structure identified by lParam2. The units assigned to the position values is specified with the MCI_SET_TIME_FORMAT flag of the MCI_SET command.

Note that lParam2 specifies a far pointer to an MCI_WAVE_DELETE_PARMS structure. (Devices with extended command sets might replace this structure with a device-specific structure.)

See Also

MCI_COPY, MCI_DELETE, MCI_PASTE