Partager via


IWMDMDeviceControl Interface

banner art

The IWMDMDeviceControl interface provides methods for controlling devices. After this interface is acquired from a specific instance of the IWMDMDevice interface, the control methods are used for remote control of play, record, pause, stop, and seek operations on that device.

The IWMDMDeviceControl interface methods support several modes of audio control, depending on the context in which they are used. That context is defined by the IWMDMDeviceControl::Seek method. The IWMDMDeviceControl::GetCapabilities method is used to determine what kinds of operations can be performed by the device.

In addition to the methods inherited from IUnknown, the IWMDMDeviceControl interface exposes the following methods.

Method Description
GetCapabilities Retrieves the device capabilities to determine what operations the device can perform.
GetStatus Retrieves the control status of the device.
Pause Pauses the current play or record operation and saves the current file position.
Play Begins playing at the current seek position.
Record Begins recording from the device's external record input at the current seek position.
Resume Resumes the current play or record operation from the file position saved during the call to Pause.
Seek Seeks to a position that is used as the starting point by the Play or Record methods.
Stop Stops the current play or record operation.

See Also