usDeviceID (USHORT) - input

      The device ID the message is to be sent to. This is the device ID returned from MCI_OPEN; this parameter is ignored on the MCI_OPEN message.

    usMessage (USHORT) - input

      The media control interface message to send. See MCI Command Messages for descriptions of these messages.

    ulParam1 (ULONG) - input

      Flags for this message. These flags are defined separately for each message; however, the following flags are available for all media control interface messages unless denoted in the message description. MCI_NOTIFY and MCI_WAIT are mutually exclusive.

      MCI_NOTIFY

        A notification message (MM_MCINOTIFY) will be posted to the window specified in the hwndCallback parameter of the data structure pointed to by the pParam2 parameter. The notification will be posted when the action indicated by this message is completed or when an error occurs.
      MCI_WAIT
        Control is not returned until the action indicated by this message is completed or an error occurs.

      pParam2 (PVOID) - input

        Pointer to a data structure for this message. These structures are defined separately for each message.

      usUserParm (USHORT) - input

        User parameter returned in the notification for this message.

      rc (ULONG) - returns

        Returns MCIERR_SUCCESS in the low-order word if there was no error; otherwise it returns the error code in the low-order word of the return value.

        Use mciGetErrorString to convert this code to a textual string. If the return code is a device-dependent error, the high-order word will contain the device ID. See Return Codes for a listing of possible return values. If the MCI_NOTIFY flag is specified then the device receiving this message performs error checking to see if it can begin processing the message. The amount of required error checking varies depending on the message and device. The device returns to the application and the rest of the command processing occurs asynchronously.


      [Back] [Next]