如何获得TAPI HCALL句柄?
How to get TAPI HCALL handle?
我想使用 lineBlindTransfer()
盲转接已接通的电话。
这是文档中的声明:
LONG WINAPI lineBlindTransfer(
HCALL hCall,
LPCSTR lpszDestAddress,
DWORD dwCountryCode
);
我使用 Excel 中的 tapiRequestMakeCall()
函数接通了电话 VBA:
Declare Function tapiRequestMakeCall Lib "tapi32.dll" _
(ByVal stNumber As String, ByVal stDummy1 As String, _
ByVal stDummy2 As String, ByVal stDummy3 As String) As Long
Sub DialNumber(Number As String)
Dim lngStatus As Long
lngStatus = tapiRequestMakeCall(Number, "", "", "")
If lngStatus < 0 Then
MsgBox "Failed to dial number " & Number, vbExclamation
End If
End Sub
如何让 HCALL
将已接通的电话转接到其他号码?
语法 C++
LONG WINAPI lineMakeCall(
HLINE hLine,
LPHCALL lphCall,
LPCSTR lpszDestAddress,
DWORD dwCountryCode,
LPLINECALLPARAMS const lpCallParams
);
lphCall
Pointer to an HCALL handle. The handle is only valid after the LINE_REPLY message is received by the application indicating that the
lineMakeCall function successfully completed. Use this handle to
identify the call when invoking other telephony operations on the
call. The application is initially the sole owner of this call. This
handle is void if the function returns an error (synchronously or
asynchronously by the reply message).
我想使用 lineBlindTransfer()
盲转接已接通的电话。
这是文档中的声明:
LONG WINAPI lineBlindTransfer(
HCALL hCall,
LPCSTR lpszDestAddress,
DWORD dwCountryCode
);
我使用 Excel 中的 tapiRequestMakeCall()
函数接通了电话 VBA:
Declare Function tapiRequestMakeCall Lib "tapi32.dll" _
(ByVal stNumber As String, ByVal stDummy1 As String, _
ByVal stDummy2 As String, ByVal stDummy3 As String) As Long
Sub DialNumber(Number As String)
Dim lngStatus As Long
lngStatus = tapiRequestMakeCall(Number, "", "", "")
If lngStatus < 0 Then
MsgBox "Failed to dial number " & Number, vbExclamation
End If
End Sub
如何让 HCALL
将已接通的电话转接到其他号码?
语法 C++
LONG WINAPI lineMakeCall(
HLINE hLine,
LPHCALL lphCall,
LPCSTR lpszDestAddress,
DWORD dwCountryCode,
LPLINECALLPARAMS const lpCallParams
);
lphCall
Pointer to an HCALL handle. The handle is only valid after the LINE_REPLY message is received by the application indicating that the lineMakeCall function successfully completed. Use this handle to identify the call when invoking other telephony operations on the call. The application is initially the sole owner of this call. This handle is void if the function returns an error (synchronously or asynchronously by the reply message).