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

📄 tapiconsts.bas

📁 一个关于拨号网络(调制解调器)的程序,可以自启动和中断一个拨号连接。
💻 BAS
📖 第 1 页 / 共 2 页
字号:
Attribute VB_Name = "mTAPIConsts"
Option Explicit
'****************************************************************
'*  VB file:   TAPIConsts.bas...
'*             Partial VB32 translation of tapi.h constants
'*
'*  created:        1999 by Ray Mercer
'*
'*  last modified:  8/25/99 by Ray Mercer (added comments)
'*
'*  These constants are in a standard module to facilitate
'*  cutting and pasting into your own code.
'*
'*  Copyright (c) 1998 Ray Mercer.  All rights reserved.
'*  Latest version at http://i.am/shrinkwrapvb
'****************************************************************

Global Const TAPI_SUCCESS As Long = 0& 'declared for convenience
Global Const LINEERR_ALLOCATED As Long = &H80000001
Global Const LINEERR_BADDEVICEID As Long = &H80000002
Global Const LINEERR_BEARERMODEUNAVAIL As Long = &H80000003
Global Const LINEERR_CALLUNAVAIL As Long = &H80000005
Global Const LINEERR_COMPLETIONOVERRUN As Long = &H80000006
Global Const LINEERR_CONFERENCEFULL As Long = &H80000007
Global Const LINEERR_DIALBILLING As Long = &H80000008
Global Const LINEERR_DIALDIALTONE As Long = &H80000009
Global Const LINEERR_DIALPROMPT As Long = &H8000000A
Global Const LINEERR_DIALQUIET As Long = &H8000000B
Global Const LINEERR_INCOMPATIBLEAPIVERSION As Long = &H8000000C
Global Const LINEERR_INCOMPATIBLEEXTVERSION As Long = &H8000000D
Global Const LINEERR_INIFILECORRUPT As Long = &H8000000E
Global Const LINEERR_INUSE As Long = &H8000000F
Global Const LINEERR_INVALADDRESS As Long = &H80000010
Global Const LINEERR_INVALADDRESSID As Long = &H80000011
Global Const LINEERR_INVALADDRESSMODE As Long = &H80000012
Global Const LINEERR_INVALADDRESSSTATE As Long = &H80000013
Global Const LINEERR_INVALAPPHANDLE As Long = &H80000014
Global Const LINEERR_INVALAPPNAME As Long = &H80000015
Global Const LINEERR_INVALBEARERMODE As Long = &H80000016
Global Const LINEERR_INVALCALLCOMPLMODE As Long = &H80000017
Global Const LINEERR_INVALCALLHANDLE As Long = &H80000018
Global Const LINEERR_INVALCALLPARAMS As Long = &H80000019
Global Const LINEERR_INVALCALLPRIVILEGE As Long = &H8000001A
Global Const LINEERR_INVALCALLSELECT As Long = &H8000001B
Global Const LINEERR_INVALCALLSTATE As Long = &H8000001C
Global Const LINEERR_INVALCALLSTATELIST As Long = &H8000001D
Global Const LINEERR_INVALCARD As Long = &H8000001E
Global Const LINEERR_INVALCOMPLETIONID As Long = &H8000001F
Global Const LINEERR_INVALCONFCALLHANDLE As Long = &H80000020
Global Const LINEERR_INVALCONSULTCALLHANDLE As Long = &H80000021
Global Const LINEERR_INVALCOUNTRYCODE As Long = &H80000022
Global Const LINEERR_INVALDEVICECLASS As Long = &H80000023
Global Const LINEERR_INVALDEVICEHANDLE As Long = &H80000024
Global Const LINEERR_INVALDIGITLIST As Long = &H80000026
Global Const LINEERR_INVALDIGITMODE As Long = &H80000027
Global Const LINEERR_INVALDIGITS As Long = &H80000028
Global Const LINEERR_INVALEXTVERSION As Long = &H80000029
Global Const LINEERR_INVALGROUPID As Long = &H8000002A
Global Const LINEERR_INVALLINEHANDLE As Long = &H8000002B
Global Const LINEERR_INVALLINESTATE As Long = &H8000002C
Global Const LINEERR_INVALLOCATION As Long = &H8000002D
Global Const LINEERR_INVALMEDIALIST As Long = &H8000002E
Global Const LINEERR_INVALMEDIAMODE As Long = &H8000002F
Global Const LINEERR_INVALMESSAGEID As Long = &H80000030
Global Const LINEERR_INVALPARAM As Long = &H80000032
Global Const LINEERR_INVALPARKID As Long = &H80000033
Global Const LINEERR_INVALPARKMODE As Long = &H80000034
Global Const LINEERR_INVALPOINTER As Long = &H80000035
Global Const LINEERR_INVALPRIVSELECT As Long = &H80000036
Global Const LINEERR_INVALRATE As Long = &H80000037
Global Const LINEERR_INVALREQUESTMODE As Long = &H80000038
Global Const LINEERR_INVALTERMINALID As Long = &H80000039
Global Const LINEERR_INVALTERMINALMODE As Long = &H8000003A
Global Const LINEERR_INVALTIMEOUT As Long = &H8000003B
Global Const LINEERR_INVALTONE As Long = &H8000003C
Global Const LINEERR_INVALTONELIST As Long = &H8000003D
Global Const LINEERR_INVALTONEMODE As Long = &H8000003E
Global Const LINEERR_INVALTRANSFERMODE As Long = &H8000003F
Global Const LINEERR_LINEMAPPERFAILED As Long = &H80000040
Global Const LINEERR_NOCONFERENCE As Long = &H80000041
Global Const LINEERR_NODEVICE As Long = &H80000042
Global Const LINEERR_NODRIVER As Long = &H80000043
Global Const LINEERR_NOMEM As Long = &H80000044
Global Const LINEERR_NOREQUEST As Long = &H80000045
Global Const LINEERR_NOTOWNER As Long = &H80000046
Global Const LINEERR_NOTREGISTERED As Long = &H80000047
Global Const LINEERR_OPERATIONFAILED As Long = &H80000048
Global Const LINEERR_OPERATIONUNAVAIL As Long = &H80000049
Global Const LINEERR_RATEUNAVAIL As Long = &H8000004A
Global Const LINEERR_RESOURCEUNAVAIL As Long = &H8000004B
Global Const LINEERR_REQUESTOVERRUN As Long = &H8000004C
Global Const LINEERR_STRUCTURETOOSMALL As Long = &H8000004D
Global Const LINEERR_TARGETNOTFOUND As Long = &H8000004E
Global Const LINEERR_TARGETSELF As Long = &H8000004F
Global Const LINEERR_UNINITIALIZED As Long = &H80000050
Global Const LINEERR_USERUSERINFOTOOBIG As Long = &H80000051
Global Const LINEERR_REINIT As Long = &H80000052
Global Const LINEERR_ADDRESSBLOCKED As Long = &H80000053
Global Const LINEERR_BILLINGREJECTED As Long = &H80000054
Global Const LINEERR_INVALFEATURE As Long = &H80000055
Global Const LINEERR_NOMULTIPLEINSTANCE As Long = &H80000056

Global Const LINEFEATURE_DEVSPECIFIC As Long = &H1&
Global Const LINEFEATURE_DEVSPECIFICFEAT As Long = &H2&
Global Const LINEFEATURE_FORWARD As Long = &H4&
Global Const LINEFEATURE_MAKECALL As Long = &H8&
Global Const LINEFEATURE_SETMEDIACONTROL As Long = &H10&
Global Const LINEFEATURE_SETTERMINAL As Long = &H20&

Global Const LINECALLFEATURE_ACCEPT As Long = &H1&
Global Const LINECALLFEATURE_ADDTOCONF As Long = &H2&
Global Const LINECALLFEATURE_ANSWER As Long = &H4&
Global Const LINECALLFEATURE_BLINDTRANSFER As Long = &H8&
Global Const LINECALLFEATURE_COMPLETECALL As Long = &H10&
Global Const LINECALLFEATURE_COMPLETETRANSF As Long = &H20&
Global Const LINECALLFEATURE_DIAL As Long = &H40&
Global Const LINECALLFEATURE_DROP As Long = &H80&
Global Const LINECALLFEATURE_GATHERDIGITS As Long = &H100&
Global Const LINECALLFEATURE_GENERATEDIGITS As Long = &H200&
Global Const LINECALLFEATURE_GENERATETONE As Long = &H400&
Global Const LINECALLFEATURE_HOLD As Long = &H800&
Global Const LINECALLFEATURE_MONITORDIGITS As Long = &H1000&
Global Const LINECALLFEATURE_MONITORMEDIA As Long = &H2000&
Global Const LINECALLFEATURE_MONITORTONES As Long = &H4000&
Global Const LINECALLFEATURE_PARK As Long = &H8000&
Global Const LINECALLFEATURE_PREPAREADDCONF As Long = &H10000
Global Const LINECALLFEATURE_REDIRECT As Long = &H20000
Global Const LINECALLFEATURE_REMOVEFROMCONF As Long = &H40000
Global Const LINECALLFEATURE_SECURECALL As Long = &H80000
Global Const LINECALLFEATURE_SENDUSERUSER As Long = &H100000
Global Const LINECALLFEATURE_SETCALLPARAMS As Long = &H200000
Global Const LINECALLFEATURE_SETMEDIACONTROL As Long = &H400000
Global Const LINECALLFEATURE_SETTERMINAL As Long = &H800000
Global Const LINECALLFEATURE_SETUPCONF As Long = &H1000000
Global Const LINECALLFEATURE_SETUPTRANSFER As Long = &H2000000
Global Const LINECALLFEATURE_SWAPHOLD As Long = &H4000000
Global Const LINECALLFEATURE_UNHOLD As Long = &H8000000

Global Const LINECALLPRIVILEGE_NONE       As Long = &H1
Global Const LINECALLPRIVILEGE_MONITOR    As Long = &H2
Global Const LINECALLPRIVILEGE_OWNER    As Long = &H4

Global Const LINECALLSTATE_IDLE                       As Long = &H1
Global Const LINECALLSTATE_OFFERING                   As Long = &H2
Global Const LINECALLSTATE_ACCEPTED                   As Long = &H4
Global Const LINECALLSTATE_DIALTONE                   As Long = &H8
Global Const LINECALLSTATE_DIALING                    As Long = &H10
Global Const LINECALLSTATE_RINGBACK                   As Long = &H20
Global Const LINECALLSTATE_BUSY                       As Long = &H40
Global Const LINECALLSTATE_SPECIALINFO                As Long = &H80
Global Const LINECALLSTATE_CONNECTED                  As Long = &H100
Global Const LINECALLSTATE_PROCEEDING                 As Long = &H200
Global Const LINECALLSTATE_ONHOLD                     As Long = &H400
Global Const LINECALLSTATE_CONFERENCED                As Long = &H800
Global Const LINECALLSTATE_ONHOLDPENDCONF             As Long = &H1000
Global Const LINECALLSTATE_ONHOLDPENDTRANSFER         As Long = &H2000
Global Const LINECALLSTATE_DISCONNECTED               As Long = &H4000
Global Const LINECALLSTATE_UNKNOWN                    As Long = &H8000

'#if (TAPI_CURRENT_VERSION >0x00020000)
Global Const LINECALLTREATMENT_SILENCE                As Long = &H1             '// TAPI v2.0
Global Const LINECALLTREATMENT_RINGBACK               As Long = &H2             '// TAPI v2.0
Global Const LINECALLTREATMENT_BUSY                   As Long = &H3             '// TAPI v2.0
Global Const LINECALLTREATMENT_MUSIC                  As Long = &H4             '// TAPI v2.0
'#End If


'// These constants are mutually exclusive - there's no way to specify more
'// than one at a time (and it doesn't make sense, either) so they're
'// ordinal rather than bits.
'//
Global Const LINEINITIALIZEEXOPTION_USEHIDDENWINDOW   As Long = &H1        '// TAPI v2.0
Global Const LINEINITIALIZEEXOPTION_USEEVENT    As Long = &H2         '// TAPI v2.0
Global Const LINEINITIALIZEEXOPTION_USECOMPLETIONPORT    As Long = &H3         '// TAPI v2.0

'// Messages for Phones and Lines

Global Const LINE_ADDRESSSTATE               As Long = 0
Global Const LINE_CALLINFO                   As Long = 1
Global Const LINE_CALLSTATE                  As Long = 2
Global Const LINE_CLOSE                      As Long = 3
Global Const LINE_DEVSPECIFIC                As Long = 4
Global Const LINE_DEVSPECIFICFEATURE         As Long = 5
Global Const LINE_GATHERDIGITS               As Long = 6
Global Const LINE_GENERATE                   As Long = 7
Global Const LINE_LINEDEVSTATE               As Long = 8
Global Const LINE_MONITORDIGITS              As Long = 9
Global Const LINE_MONITORMEDIA               As Long = 10
Global Const LINE_MONITORTONE                As Long = 11
Global Const LINE_REPLY                      As Long = 12
Global Const LINE_REQUEST                    As Long = 13
Global Const PHONE_BUTTON                    As Long = 14
Global Const PHONE_CLOSE                     As Long = 15
Global Const PHONE_DEVSPECIFIC               As Long = 16
Global Const PHONE_REPLY                     As Long = 17
Global Const PHONE_STATE                     As Long = 18
Global Const LINE_CREATE                     As Long = 19                      '// TAPI v1.4
Global Const PHONE_CREATE                    As Long = 20                      '// TAPI v1.4

'#if (TAPI_CURRENT_VERSION >= 0x00020000)
Global Const LINE_AGENTSPECIFIC              As Long = 21                      '// TAPI v2.0
Global Const LINE_AGENTSTATUS                As Long = 22                      '// TAPI v2.0
Global Const LINE_APPNEWCALL                 As Long = 23                      '// TAPI v2.0
Global Const LINE_PROXYREQUEST               As Long = 24                      '// TAPI v2.0
Global Const LINE_REMOVE                     As Long = 25                      '// TAPI v2.0
Global Const PHONE_REMOVE                    As Long = 26                      '// TAPI v2.0
'#End If

Enum EnumTAPIStringFormats
    STRINGFORMAT_ASCII = &H1&
    STRINGFORMAT_DBCS = &H2&
    STRINGFORMAT_UNICODE = &H3&
    STRINGFORMAT_BINARY = &H4&
End Enum

Global Const LINEADDRESSMODE_ADDRESSID = &H1&
Global Const LINEADDRESSMODE_DIALABLEADDR = &H2&

Enum EnumTAPIBearerModes
    LINEBEARERMODE_VOICE = &H1&
    LINEBEARERMODE_SPEECH = &H2&
    LINEBEARERMODE_MULTIUSE = &H4&
    LINEBEARERMODE_DATA = &H8&
    LINEBEARERMODE_ALTSPEECHDATA = &H10&
    LINEBEARERMODE_NONCALLSIGNALING = &H20&
End Enum

Enum EnumTAPIMediaModes
    LINEMEDIAMODE_UNKNOWN = &H2&
    LINEMEDIAMODE_INTERACTIVEVOICE = &H4&
    LINEMEDIAMODE_AUTOMATEDVOICE = &H8&
    LINEMEDIAMODE_DATAMODEM = &H10&
    LINEMEDIAMODE_G3FAX = &H20&
    LINEMEDIAMODE_TDD = &H40&
    LINEMEDIAMODE_G4FAX = &H80&
    LINEMEDIAMODE_DIGITALDATA = &H100&
    LINEMEDIAMODE_TELETEX = &H200&
    LINEMEDIAMODE_VIDEOTEX = &H400&
    LINEMEDIAMODE_TELEX = &H800&
    LINEMEDIAMODE_MIXED = &H1000&
    LINEMEDIAMODE_ADSI = &H2000&
End Enum

Enum EnumTAPILineToneModes
    LINETONEMODE_CUSTOM = &H1&
    LINETONEMODE_RINGBACK = &H2&
    LINETONEMODE_BUSY = &H4&
    LINETONEMODE_BEEP = &H8&
    LINETONEMODE_BILLING = &H10&

⌨️ 快捷键说明

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