ITMediaSupport::QueryMediaType method (tapi3if.h)

The QueryMediaType method indicates whether the service provider associated with the current address supports the media type or types indicated by lMediaType.

Syntax

HRESULT QueryMediaType(
  [in]  long         lMediaType,
  [out] VARIANT_BOOL *pfSupport
);

Parameters

[in] lMediaType

Media type or types being queried.

[out] pfSupport

Pointer to a VARIANT_BOOL indicating whether the media type is supported. If the returned value is VARIANT_TRUE, the media is supported; if it is VARIANT_FALSE, the media is not supported.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_POINTER
The pfSupport parameter is not a valid pointer.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.

Requirements

Requirement Value
Target Platform Windows
Header tapi3if.h (include Tapi3.h)
Library Uuid.lib
DLL Tapi3.dll

See also

Address Object

ITMediaSupport