⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rmstapideclarations.bas

📁 AVAYA IPO 430系列交换机 TAPI 2.0软件电话源代码
💻 BAS
📖 第 1 页 / 共 5 页
字号:
' lineDeallocate Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineHold Declarations BEGIN

Declare Function lineHold Lib "TAPI32.DLL" (ByVal l_hCall As Long) As Long

' lineHold Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineUnHold Declarations BEGIN

Declare Function lineUnhold Lib "TAPI32.DLL" (ByVal l_hCall As Long) As Long

' lineUnHold Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' linePark Declarations BEGIN

Declare Function linePark Lib "TAPI32.DLL" _
    (ByVal l_hCall As Long, ByVal l_dwParkMode As Long, _
     ByVal s_lpszDirAddress As String, ptr_lpNonDirAddress As Any) As Long

' linePark Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineUnPark Declarations BEGIN

    ' Old Declaration. Not to use anymore BEGIN
        'Declare Function lineUnpark Lib "TAPI32.DLL" _
        '    (ByVal l_hLine As Long, ByVal l_dwAddressID As Long, _
        '     ByRef l_lphCall As Long, ByVal s_lpszDestAddress As String) As Long
    ' Old Declaration. Not to use anymore END
    

Declare Function lineUnpark Lib "TAPI32.DLL" _
    (ByVal l_hLine As Long, ByVal l_dwAddressID As Long, _
     l_lphCall As Long, ByVal s_lpszDestAddress As String) As Long

' lineUnPark Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineRedirect Declarations BEGIN

Declare Function lineRedirect Lib "TAPI32.DLL" _
    (ByVal l_hCall As Long, ByVal s_lpszDestAddress As String, ByVal l_dwCountryCode As Long) As Long

' lineRedirect Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineGetCallStatus Declarations BEGIN

Type systemtime
    i_wYear As Integer
    i_wMonth As Integer
    i_wDayOfWeek As Integer
    i_wDay As Integer
    i_wHour As Integer
    i_wMinute As Integer
    i_wSecond As Integer
    i_wMilliseconds As Integer
End Type

Global Const LINECALLSTATUS_MEMSIZE = DEFAULT_SIZE

Type lineCallStatus
    l_dwTotalSize As Long
    l_dwNeededSize As Long
    l_dwUsedSize As Long

    l_dwCallState As Long
    l_dwCallStateMode As Long
    l_dwCallPrivilege As Long
    l_dwCallFeatures As Long

    l_dwDevSpecificSize As Long
    l_dwDevSpecificOffset As Long
    
    l_dwCallFeatures2 As Long
    struct_tStateEntryTime As systemtime
    
    mem As String * LINECALLSTATUS_MEMSIZE
End Type
Global Const LINECALLSTATUS_FIXEDSIZE = 56

    ' Old Declaration. Not to use anymore BEGIN
        'Type LINECALLSTATUS_STR
        '    mem As String * LINECALLSTATUS_FIXEDSIZE
        'End Type
    ' Old Declaration. Not to use anymore END

    ' Old Declaration. Not to use anymore BEGIN
        'Declare Function lineGetCallStatus Lib "TAPI32.DLL" _
        '    (ByVal l_hCall As Long, ByRef struct_lpCallStatus As lineCallStatus) As Long
    ' Old Declaration. Not to use anymore END

Declare Function lineGetCallStatus Lib "TAPI32.DLL" _
    (ByVal l_hCall As Long, ptr_lpCallStatus As Any) As Long

' lineGetCallStatus Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineGetCallInfo Declarations BEGIN

Global Const LINECALLINFO_MEMSIZE = DEFAULT_SIZE

Type lineCallInfo
    l_dwTotalSize As Long
    l_dwNeededSize As Long
    l_dwUsedSize As Long

    l_hLine As Long
    l_dwLineDeviceID As Long
    l_dwAddressID As Long

    l_dwBearerMode As Long
    l_dwRate As Long
    l_dwMediaMode As Long

    l_dwAppSpecific As Long
    l_dwCallID As Long
    l_dwRelatedCallID As Long
    l_dwCallParamFlags As Long
    l_dwCallStates As Long

    l_dwMonitorDigitModes As Long
    l_dwMonitorMediaModes As Long
    struct_DialParams As lineDialParams

    l_dwOrigin As Long
    l_dwReason As Long
    l_dwCompletionID As Long
    l_dwNumOwners As Long
    l_dwNumMonitors As Long

    l_dwCountryCode As Long
    l_dwTrunk As Long

    l_dwCallerIDFlags As Long
    l_dwCallerIDSize As Long
    l_dwCallerIDOffset As Long
    l_dwCallerIDNameSize As Long
    l_dwCallerIDNameOffset As Long

    l_dwCalledIDFlags As Long
    l_dwCalledIDSize As Long
    l_dwCalledIDOffset As Long
    l_dwCalledIDNameSize As Long
    l_dwCalledIDNameOffset As Long

    l_dwConnectedIDFlags As Long
    l_dwConnectedIDSize As Long
    l_dwConnectedIDOffset As Long
    l_dwConnectedIDNameSize As Long
    l_dwConnectedIDNameOffset As Long

    l_dwRedirectionIDFlags As Long
    l_dwRedirectionIDSize As Long
    l_dwRedirectionIDOffset As Long
    l_dwRedirectionIDNameSize As Long
    l_dwRedirectionIDNameOffset As Long

    l_dwRedirectingIDFlags As Long
    l_dwRedirectingIDSize As Long
    l_dwRedirectingIDOffset As Long
    l_dwRedirectingIDNameSize As Long
    l_dwRedirectingIDNameOffset As Long

    l_dwAppNameSize As Long
    l_dwAppNameOffset As Long

    l_dwDisplayableAddressSize As Long
    l_dwDisplayableAddressOffset As Long

    l_dwCalledPartySize As Long
    l_dwCalledPartyOffset As Long

    l_dwCommentSize As Long
    l_dwCommentOffset As Long

    l_dwDisplaySize As Long
    l_dwDisplayOffset As Long

    l_dwUserUserInfoSize As Long
    l_dwUserUserInfoOffset As Long

    l_dwHighLevelCompSize As Long
    l_dwHighLevelCompOffset As Long

    l_dwLowLevelCompSize As Long
    l_dwLowLevelCompOffset As Long

    l_dwChargingInfoSize As Long
    l_dwChargingInfoOffset As Long

    l_dwTerminalModesSize As Long
    l_dwTerminalModesOffset As Long

    l_dwDevSpecificSize As Long
    l_dwDevSpecificOffset As Long
    
    l_dwCallTreatment As Long
    
    l_dwCallDataSize As Long
    l_dwCallDataOffset As Long
    
    l_dwSendingFlowspecSize As Long
    l_dwSendingFlowspecOffset As Long
    
    l_dwReceivingFlowspecSize As Long
    l_dwReceivingFlowspecOffset As Long
    
    ' >= TAPI 3.0...  BEGIN
    l_dwCallerIDAddressType As Long
    l_dwCalledIDAddressType As Long
    l_dwConnectedIDAddressType As Long
    l_dwRedirectionIDAddressType As Long
    l_dwRedirectingIDAddressType As Long
    ' >= TAPI 3.0...  END

    mem As String * LINECALLINFO_MEMSIZE
End Type
Global Const LINECALLINFO_FIXEDSIZE = 344

    ' Old Declaration. Not to use anymore BEGIN
        'Type LINECALLINFO_STR
        '    mem As String * LINECALLINFO_FIXEDSIZE
        'End Type
    ' Old Declaration. Not to use anymore END

    ' Old Declaration. Not to use anymore BEGIN
        'Declare Function lineGetCallInfo Lib "TAPI32.DLL" _
        '    (ByVal l_hCall As Long, ByRef ptr_lpCallInfo As lineCallInfo) As Long
    ' Old Declaration. Not to use anymore END

Declare Function lineGetCallInfo Lib "TAPI32.DLL" _
    (ByVal l_hCall As Long, ptr_lpCallInfo As Any) As Long

' lineGetCallInfo Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineConfigDialog Declarations BEGIN

Declare Function lineConfigDialog Lib "TAPI32.DLL" _
    (ByVal l_dwDeviceID As Long, ByVal l_hwndOwner As Long, ByVal s_lpszDeviceClass As String) As Long

' lineConfigDialog Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' Structures used by...
'   lineConfigDialogEdit (in proc), lineGetDevConfig (in proc), lineGetID (in proc)
' BEGIN

Type VarString
    l_dwTotalSize As Long
    l_dwNeededSize As Long
    l_dwUsedSize As Long

    l_dwStringFormat As Long
    l_dwStringSize As Long
    l_dwStringOffset As Long
End Type
Global Const VARSTRING_FIXEDSIZE = 24

' Structures used by...
'   lineConfigDialogEdit (in proc), lineGetDevConfig (in proc), lineGetID (in proc)
' END

'-----------------------------------------------------------------------------------------------------------------------

' lineConfigDialogEdit Declarations BEGIN

    ' Old Declaration. Not to use anymore BEGIN
        'Type VARSTRING_STR
        '    mem As String * VARSTRING_FIXEDSIZE
        'End Type
    ' Old Declaration. Not to use anymore END

    ' Old Declaration. Not to use anymore BEGIN
        'Declare Function lineConfigDialogEdit Lib "TAPI32.DLL" _
        '    (ByVal l_dwDeviceID As Long, ByVal l_hwndOwner As Long, ByVal s_lpszDeviceClass As String, _
        '     ByRef ptr_lpDeviceConfigIn As VarString, ByVal l_dwSize As Long, ByRef struct_lpDeviceConfigOut As VarString) As Long
    ' Old Declaration. Not to use anymore END

Declare Function lineConfigDialogEdit Lib "TAPI32.DLL" _
    (ByVal l_dwDeviceID As Long, ByVal l_hwndOwner As Long, ByVal s_lpszDeviceClass As String, _
     ptr_lpDeviceConfigIn As Any, ByVal l_dwSize As Long, ptr_lpDeviceConfigOut As Any) As Long

' lineConfigDialogEdit Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineGetDevConfig Declarations BEGIN

    ' Old Declaration. Not to use anymore BEGIN
        'Declare Function lineGetDevConfig Lib "TAPI32.DLL" _
        '    (ByVal l_dwDeviceID As Long, ByRef struct_lpDeviceConfig As VarString, ByVal s_lpszDeviceClass As String) As Long
    ' Old Declaration. Not to use anymore END

Declare Function lineGetDevConfig Lib "TAPI32.DLL" _
    (ByVal l_dwDeviceID As Long, ptr_lpDeviceConfig As Any, ByVal s_lpszDeviceClass As String) As Long

' lineGetDevConfig Declarations END

'-----------------------------------------------------------------------------------------------------------------------

' lineGetLineDevStatus Declarations BEGIN

Global Const LINEDEVSTATUS_MEMSIZE = DEFAULT_SIZE

Type lineDevStatus
    l_dwTotalSize As Long
    l_dwNeededSize As Long
    l_dwUsedSize As Long

    l_dwNumOpens As Long
    l_dwOpenMediaModes As Long
    l_dwNumActiveCalls As Long
    l_dwNumOnHoldCalls As Long
    l_dwNumOnHoldPendCalls As Long
    l_dwLineFeatures As Long
    l_dwNumCallCompletions As Long
    l_dwRingMode As Long
    l_dwSignalLevel As Long
    l_dwBatteryLevel As Long
    l_dwRoamMode As Long

    l_dwDevStatusFlags As Long

    l_dwTerminalModesSize As Long
    l_dwTerminalModesOffset As Long

    l_dwDevSpecificSize As Long
    l_dwDevSpecificOffset As Long
    
    l_dwAvailableMediaModes As Long
    l_dwAppInfoSize As Long

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -