ITLegacyCallMediaControl2::GetIDAsVariant method (tapi3if.h)

The GetIDAsVariant method gets the identifier for the device associated with the current call.

This method is intended for Visual Basic and scripting applications. C/C++ applications should use the ITLegacyCallMediaControl::GetID method.

Syntax

HRESULT GetIDAsVariant(
  [in]  BSTR    bstrDeviceClass,
  [out] VARIANT *pVarDeviceID
);

Parameters

[in] bstrDeviceClass

BSTR representing the TAPI device class.

[out] pVarDeviceID

Pointer to a variant array of bytes of type VT_ARRAY | VT_UI1 which contains the identifier for the device specified in bstrDeviceClass.

Return value

This method can return one of these values.

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

Requirements

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

See also

ITLegacyAddressMediaControl

ITLegacyCallMediaControl2

ITLegacyCallMediaControl::GetID