IWMDMDeviceControl::GetCapabilities
The GetCapabilities method retrieves the capabilities mask for the device with which this control interface is associated. The capabilities describe the methods of the device control that are supported by the media device.
Syntax
HRESULT GetCapabilities(
DWORD* pdwCapabilitiesMask
);
Parameters
pdwCapabilitiesMask
[out] Pointer to a DWORD containing the capabilities of the device. The following flags can be returned in this variable.
Flag | Description |
WMDM_DEVICECAP_CANPLAY | The media device can play MP3 audio. |
WMDM_DEVICECAP_CANSTREAMPLAY | The media device can play streaming audio directly from the host computer. |
WMDM_DEVICECAP_CANRECORD | The media device can record audio. |
WMDM_DEVICECAP_CANSTREAMRECORD | The media device can record streaming audio directly to the host computer. |
WMDM_DEVICECAP_CANPAUSE | The media device can pause during play or record operations. |
WMDM_DEVICECAP_CANRESUME | The media device can resume an operation that was paused. |
WMDM_DEVICECAP_CANSTOP | The media device can stop playing before the end of a file. |
WMDM_DEVICECAP_CANSEEK | The media device can seek to a position other than the beginning of a file. |
WMDM_DEVICECAP_HASSECURECLOCK | The media device has a secure clock. |
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
E_INVALIDARG | The pdwCapabilitiesMask parameter is an invalid or NULL pointer. |
E_FAIL | An unspecified error occurred. |
Requirements
Header: Defined in wmdm.idl.
Library: mssachlp.lib
See Also