Windows Media Format SDK banner art
PreviousNext

IMDSPDevice::GetType

The GetType method retrieves device type information.

Syntax

HRESULT GetType(
  DWORD*  pdwType
);

Parameters

  pdwType

[out]  Pointer to a double word that receives the type attributes of the device. The following table shows the types received.

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_SDMI The media device is SDMI compliant.
WMDM_DEVICE_TYPE_NONSDMI The media device is not SDMI compliant.
WMDM_DEVICE_TYPE_VIRTUAL The media device is not a physical device.

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

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.