下列 TAPI 函式會在 Unicode (W) 和 ANSI (A) 版本中實作。 一般而言,ANSI 版本的實作會呼叫 Unicode 版本,並在 Unicode 中執行 ANSI 參數和結構字段的必要轉換;下表指出已轉換的參數。
明確呼叫泛型 (W“ 或 ”A“ 後置詞) 版本的函式的應用程式會執行 ANSI 版本,以便與舊版 TAPI 相容。
注意
整個電話語音服務提供者介面 (TSPI) 是 2.0 版的 Unicode。
下表列出 TAPI 結構中字串欄位的參考,其中包含部分功能變數名稱。 例如,LINEFORWARD 結構中的 「Caller Address」 是由 dwCallerAddressOffset 字段所指向,並以 dwCallerAddressSize 欄位分隔;在數據表中,此字串只會識別為 CallerAddress。
| TAPI 函式 | 函式 ANSI 版本中轉換的參數和結構欄位 |
|---|---|
| lineAddProvider | lpszProviderName |
| lineBlindTransfer | lpszDestAddress |
| lineConfigDialog | lpszDeviceClass |
| lineConfigDialogEdit |
lpszDeviceClass附注:如果直接操作,應用程式必須處理 lpDeviceConfigIn 和 lpDeviceConfigOut 中的字串轉換。 |
| lineDial | lpszDestAddress |
| lineForward |
lpForwardList (LINEFORWARDLIST)
|
| lineGatherDigits |
lpsDigitslpszTerminationDigits |
| lineGenerateDigits | lpszDigits |
| lineGetAddressCaps |
lpAddressCaps (LINEADDRESSCAPS)
|
| lineGetAddressID | lpsAddress |
| lineGetAddressStatus |
lpAddressStatus (LINEADDRESSSTATUS)
|
| lineGetAgentActivityList |
lpAgentActivityList (LINEAGENTACTIVITYLIST)
|
| lineGetAgentCaps |
lpAgentCaps (LINEAGENTCAPS)
|
| lineGetAgentGroupList |
lpAgentGroupListI(LINEAGENTGROUPLIST)
|
| lineGetAgentStatus |
lpAgentStatus (LINEAGENTSTATUS)
|
| lineGetAppPriority |
lpszAppFilenamelpExtensionName |
| lineGetCallInfo |
lpCallInfo (LINECALLINFO)
|
| lineGetCountry |
lpLineCountryList (LINECOUNTRYLIST)
|
| lineGetDevCaps |
lpLineDevCaps (LINEDEVCAPS) - ProviderInfo - SwitchInfo - LineName - TerminalText - DeviceClasses 注意:dwStringFormat 已過時。 |
| LineGetDevConfig |
lpszDeviceClass附注:如果直接操作這些字串串,應用程式必須處理 lpDeviceConfig 中的字串轉換。 |
| LineGetIcon | lpszDeviceClass |
| lineGetID |
lpszDeviceClass附註:如果直接操作字串,應用程式必須處理 lpDeviceID 中的字串轉換。 |
| LineGetLineDevStatus |
lpLineDevStatus (LINEDEVSTATUS)
|
| lineGetProviderList |
lpProviderList (LINEPROVIDERLIST)
|
| lineGetRequest |
lpRequestBuffer ( LINEREQMAKECALL
|
| lineGetTranslateCaps |
lpTranslateCaps (LINETRANSLATECAPS)
|
| lineHandoff | lpszFileName |
| lineInitializeEx | lpszFriendlyAppName |
| lineMakeCall |
lpszDestAddresslpCallParams (LINECALLPARAMS)
|
| lineOpen |
lpCallParams (LINECALLPARAMS)
|
| linePark |
lpszDirAddresslpNonDirAddress (VARSTRING)
|
| linePickup |
lpszDestAddresslpszGroupID |
| linePrepareAddToConference |
lpCallParams (LINECALLPARAMS)
|
| lineRedirect | lpszDestAddress |
| lineSetAppPriority |
lpszAppFilenamelpszExtensionName |
| lineSetDevConfig |
lpszDeviceClass附注:如果直接操作這些字串串,應用程式必須處理 lpDeviceConfig 中的字串轉換。 |
| lineSetTollList | lpszAddressIn |
| lineSetupConference |
lpCallParams (LINECALLPARAMS)
|
| lineSetupTransfer |
lpCallParams (LINECALLPARAMS)
|
| lineTranslateAddress |
lpszAddressInlpTranslateOutput (LINETRANSLATEOUTPUT)
|
| lineTranslateDialog | lpszAddressIn |
| lineUnpark | lpszDestAddress |
| phoneConfigDialog | lpszDeviceClass |
| phoneGetButtonInfo |
lpButtonInfo (PHONEBUTTONINFO)
|
| phoneGetDevCaps |
lpPhoneCaps (PHONECAPS) - ProviderInfo - PhoneInfo - PhoneName - 裝置類別 注意:dwStringFormat 已過時。 |
| phoneGetIcon | lpszDeviceClass |
| phoneGetID |
lpszDeviceClass附註:如果直接操作字串,應用程式必須處理 lpDeviceID 中的字串轉換。 |
| phoneGetStatus |
lpPhoneStatus (PHONESTATUS)
|
| phoneInitializeEx | lpszFriendlyAppName |
| phoneSetButtonInfo |
lpButtonInfo (PHONEBUTTONINFO)
|
| tapiGetLocationInfo |
lpszCountryCodelpszCityCode |
| tapiRequestMakeCall |
lpszDestAddresslpszAppName lpszCalledParty lpszComment |