Platform SDK: TAPI |
Creates a new Call object that can be used to make an outgoing call and returns a pointer to the object's ITBasicCallControl interface. The newly created call is in the CS_IDLE state and has no media or terminals selected.
Acceptable input values for call address, address type, and media types are specific to the telephony service provider that supports the current address. For information on TSPs shipped with Windows 2000, see About The Telephony Service Provider (TSP). For third party TSPs, see the documentation provided by the vender.
HRESULT CreateCall( BSTR pDestAddress, long lAddressType, long lMediaTypes, ITBasicCallControl **ppCall );
Value | Meaning |
---|---|
S_OK | Method succeeded. |
E_INVALIDARG | The address type, lAddressType, is invalid or specifies more than one address type. |
E_OUTOFMEMORY | Insufficient memory exists to perform the operation. |
E_POINTER | The ppCall parameter is not a valid pointer. |
The application must use SysAllocString to allocate memory for the pDestAddress parameter and use SysFreeString to free the memory when the variable is no longer needed.
Calls used as consultation calls, such as during a conference, transfer, or forward operation, must be created using this method.
Note for TAPI 2 programmers This method is not precisely the same as lineMakeCall. It supplies TAPI with much of the same information, but parallel operations are not performed until ITBasicCallControl::Connect is called.
Windows NT/2000: Requires Windows 2000.
Version: Requires TAPI 3.0 or later.
Header: Declared in Tapi3.h.
Library: Use T3iid.lib.
ITAddress, Address Object, ITBasicCallControl::Dial, lineDial