ITLegacyCallMediaControl::SetMediaType method (tapi3if.h)

The SetMediaType method sets the media type(s) for the current call in its LINECALLINFO structure. For more information, see lineSetMediaMode.

Syntax

HRESULT SetMediaType(
  [in] long lMediaType
);

Parameters

[in] lMediaType

Indicator of media type.

Return value

This method can return one of these values.

Return code Description
S_OK
Method succeeded.
E_FAIL
The associated call object is not valid.
E_INVALIDARG
The lMediaType parameter is not valid.
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

ITLegacyAddressMediaControl

ITLegacyCallMediaControl