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 |
---|---|
|
Method succeeded. |
|
Insufficient memory exists to perform the operation. |
|
The pVarDeviceID parameter is not a valid pointer. |
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | tapi3if.h |
Library | Uuid.lib |
DLL | Tapi3.dll |