Previous | Next |
The GetType method retrieves type information defining what operation types are supported by the device.
Syntax
HRESULT GetType(
DWORD* pdwType
);
Parameters
pdwType
[out] Pointer to a double word containing the device type attributes.
The possible values returned in pdwType are defined in the following table.
Device type | Description |
WMDM_DEVICE_TYPE_PLAYBACK | The media device supports audio playback. |
WMDM_DEVICE_TYPE_RECORD | The media device supports audio recording. |
WMDM_DEVICE_TYPE_DECODE | The media device supports audio format decoding. |
WMDM_DEVICE_TYPE_ENCODE | The media device supports audio format encoding. |
WMDM_DEVICE_TYPE_STORAGE | The media device has on-board storage for media files. |
WMDM_DEVICE_TYPE_VIRTUAL | The media device is not a physical device. |
WMDM_DEVICE_TYPE_SDMI | The media device can accept SDMI-protected content. |
WMDM_DEVICE_TYPE_NONSDMI | The media device can accept non-SDMI content. |
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Description |
E_INVALIDARG | The pdwType parameter is an invalid or NULL pointer. |
E_FAIL | An unspecified error occurred. |
See Also
Previous | Next |