|
lineTranslateAddress
The lineTranslateAddress function translates the specified address into another format.
LONG lineTranslateAddress(
HLINEAPP hLineApp,
|
| DWORD dwDeviceID,
|
| DWORD dwAPIVersion,
|
| LPCSTR lpszAddressIn,
|
| DWORD dwCard,
|
| DWORD dwTranslateOptions,
|
| LPLINETRANSLATEOUTPUT lpTranslateOutput
|
| );
|
|
Parameters
hLineApp
The application handle returned by lineInitializeEx. If an application has not yet called the lineInitializeEx function, it can set the hLineApp parameter to NULL.
dwDeviceID
The device ID for the line device upon which the call is intended to be
dialed, so that variations in dialing procedures on different lines can be applied to
the translation process.
dwAPIVersion
Indicates the highest version of TAPI supported by the application (not necessarily the value negotiated by lineNegotiateAPIVersion on some particular line device).
lpszAddressIn
A pointer to a NULL-terminated ASCII string containing the address from which
the information is to be extracted for translation. Must be in either the
canonical address format, or an arbitrary string of dialable digits (non-canonical).
This parameter must not be NULL. If the AddressIn contains a subaddress or name field, or additional addresses separated from
the first address by ASCII CR and LF characters, only the first address is
translated, and the remainder of the string is returned to the application without
modification.
dwCard
The credit card to be used for dialing. This field in only valid if the
CARDOVERRIDE bit is set in dwTranslateOptions. This field specifies the permanent ID of a Card entry in the [Cards] section
in the registry (as obtained from lineTranslateCaps) which should be used instead of the PreferredCardID specified in the
definition of the CurrentLocation. It does not cause the PreferredCardID parameter of the current Location entry in the registry to be modified; the
override applies only to the current translation operation. This field is
ignored if the CARDOVERRIDE bit is not set in dwTranslateOptions.
dwTranslateOptions
The associated operations to be performed prior to the translation of the
address into a dialable string. This parameter uses the following
LINETRANSLATEOPTION_ constants:
LINETRANSLATEOPTION_CARDOVERRIDE
If this bit is set, dwCard specifies the permanent ID of a Card entry in the [Cards] section in the
registry (as obtained from lineTranslateCaps) which should be used instead of the PreferredCardID specified in the definition of the CurrentLocation. It does not cause the PreferredCardID parameter of the current Location entry in the registry to be modified; the
override applies only to the current translation operation. The dwCard field is ignored if the CARDOVERRIDE bit is not set.
LINETRANSLATEOPTION_CANCELCALLWAITING
If a Cancel Call Waiting string is defined for the location, setting this bit
will cause that string to be inserted at the beginning of the dialable string.
This is commonly used by data modem and fax applications to prevent
interruption of calls by call waiting beeps. If no Cancel Call Waiting string is defined
for the location, this bit has no affect. Note that applications using this bit
are advised to also set the LINECALLPARAMFLAGS_SECURE bit in the dwCallParamFlags field of the LINECALLPARAMS structure passed in to lineMakeCall through the lpCallParams parameter, so that if the line device uses a mechanism other than dialable
digits to suppress call interrupts that that mechanism will be invoked.
LINETRANSLATEOPTION_FORCELOCAL
If the number is local but would have been translated as a long distance call
(LINETRANSLATERESULT_INTOLLLIST bit set in the LINETRANSLATEOUTPUT structure), this option will force it to be translated as local. This is a
temporary override of the toll list setting.
LINETRANSLATEOPTION_FORCELD
If the address could potentially have been a toll call, but would have been
translated as a local call (LINETRANSLATERESULT_NOTINTOLLLIST bit set in the LINETRANSLATEOUTPUT structure), this option will force it to be translated as long distance.
This is a temporary override of the toll list setting.
lpTranslateOutput
A pointer to an application-allocated memory area to contain the output of the
translation operation, of type LINETRANSLATEOUTPUT. Prior to calling lineTranslateAddress, the application should set the dwTotalSize field of this structure to indicate the amount of memory available to TAPI
for returning information.
Return Values
Returns zero if the request is successful or a negative error number if an
error has occurred. Possible return values are:
LINEERR_BADDEVICEID, LINEERR_INVALPOINTER, LINEERR_INCOMPATIBLEAPIVERSION,
LINEERR_NODRIVER, LINEERR_INIFILECORRUPT, LINEERR_NOMEM, LINEERR_INVALADDRESS,
LINEERR_OPERATIONFAILED, LINEERR_INVALAPPHANDLE, LINEERR_RESOURCEUNAVAIL,
LINEERR_INVALCARD, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPARAM.
See Also
lineInitializeEx, LINECALLPARAMS, lineNegotiateAPIVersion, LINETRANSLATEOUTPUT
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|