Platform SDK: TAPI |
Displays an application-modal dialog box that allows the user to change the current location of a phone number about to be dialed, adjust location and calling card parameters, and see the effect.
HRESULT TranslateDialog( long hwndOwner, BSTR pAddressIn );
Value | Meaning |
---|---|
S_OK | Method succeeded. |
E_INVALIDARG | The hwndOwner parameter is not a valid handle or the pAddressIn parameter is not a valid phone number. |
E_POINTER | The pAddressIn parameter is not a valid pointer. |
E_OUTOFMEMORY | Insufficient memory exists to perform the operation. |
E_UNEXPECTED | An unexpected error occurred. |
TAPI_E_REGISTRY_SETTING_CORRUPT | The registry settings for address translation are not valid. |
TAPI_E_NODRIVER | No TSP exists that can do translation for this address. |
TAPI_E_INUSE | The dialog is already open and in use. |
TAPI_E_INVALADDRESS | The current address is not valid. |
TAPI_E_OPERATIONFAILED | TAPI was not able to complete the operation. |
The application must use SysAllocString to allocate memory for pAddressIn and use SysFreeString to free the memory when the variable is no longer needed.
The TranslateDialog method is a COM wrapper for the TAPI 2.1 LineTranslateDialog function.
Windows NT/2000: Requires Windows 2000.
Version: Requires TAPI 3.0 or later.
Header: Declared in Tapi3.h.
Library: Use T3iid.lib.