📄 tapi.hpp
字号:
typedef TLINEREQMEDIACALL *PLINEREQMEDIACALL;
#pragma pack(push,1)
struct TLINEREQMEDIACALL
{
public:
HWND hWnd;
int wRequestID;
char szDeviceClass[40];
Byte ucDeviceID[40];
unsigned dwSize;
unsigned dwSecure;
char szDestAddress[81];
char szAppName[41];
char szCalledParty[41];
char szComment[81];
} ;
#pragma pack(pop)
struct TLINEREQMEDIACALLW;
typedef TLINEREQMEDIACALLW *LPLINEREQMEDIACALLW;
typedef TLINEREQMEDIACALLW *PLINEREQMEDIACALLW;
#pragma pack(push,1)
struct TLINEREQMEDIACALLW
{
public:
HWND hWnd;
int wRequestID;
WideChar szDeviceClass[40];
Byte ucDeviceID[40];
unsigned dwSize;
unsigned dwSecure;
WideChar szDestAddress[81];
WideChar szAppName[41];
WideChar szCalledParty[41];
WideChar szComment[81];
} ;
#pragma pack(pop)
struct TLINETERMCAPS;
typedef TLINETERMCAPS *LPLINETERMCAPS;
typedef TLINETERMCAPS *PLINETERMCAPS;
#pragma pack(push,1)
struct TLINETERMCAPS
{
public:
unsigned dwTermDev;
unsigned dwTermModes;
unsigned dwTermSharing;
} ;
#pragma pack(pop)
struct TLINETRANSLATECAPS;
typedef TLINETRANSLATECAPS *LPLINETRANSLATECAPS;
typedef TLINETRANSLATECAPS *PLINETRANSLATECAPS;
#pragma pack(push,1)
struct TLINETRANSLATECAPS
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwNumLocations;
unsigned dwLocationListSize;
unsigned dwLocationListOffset;
unsigned dwCurrentLocationID;
unsigned dwNumCards;
unsigned dwCardListSize;
unsigned dwCardListOffset;
unsigned dwCurrentPreferredCardID;
} ;
#pragma pack(pop)
struct TLINETRANSLATEOUTPUT;
typedef TLINETRANSLATEOUTPUT *LPLINETRANSLATEOUTPUT;
typedef TLINETRANSLATEOUTPUT *PLINETRANSLATEOUTPUT;
#pragma pack(push,1)
struct TLINETRANSLATEOUTPUT
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwDialableStringSize;
unsigned dwDialableStringOffset;
unsigned dwDisplayableStringSize;
unsigned dwDisplayableStringOffset;
unsigned dwCurrentCountry;
unsigned dwDestCountry;
unsigned dwTranslateResults;
} ;
#pragma pack(pop)
struct TPHONEBUTTONINFO;
typedef TPHONEBUTTONINFO *LPPHONEBUTTONINFO;
typedef TPHONEBUTTONINFO *PPHONEBUTTONINFO;
#pragma pack(push,1)
struct TPHONEBUTTONINFO
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwButtonMode;
unsigned dwButtonFunction;
unsigned dwButtonTextSize;
unsigned dwButtonTextOffset;
unsigned dwDevSpecificSize;
unsigned dwDevSpecificOffset;
unsigned dwButtonState;
} ;
#pragma pack(pop)
struct TPHONECAPS;
typedef TPHONECAPS *LPPHONECAPS;
typedef TPHONECAPS *PPHONECAPS;
#pragma pack(push,1)
struct TPHONECAPS
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwProviderInfoSize;
unsigned dwProviderInfoOffset;
unsigned dwPhoneInfoSize;
unsigned dwPhoneInfoOffset;
unsigned dwPermanentPhoneID;
unsigned dwPhoneNameSize;
unsigned dwPhoneNameOffset;
unsigned dwStringFormat;
unsigned dwPhoneStates;
unsigned dwHookSwitchDevs;
unsigned dwHandsetHookSwitchModes;
unsigned dwSpeakerHookSwitchModes;
unsigned dwHeadsetHookSwitchModes;
unsigned dwVolumeFlags;
unsigned dwGainFlags;
unsigned dwDisplayNumRows;
unsigned dwDisplayNumColumns;
unsigned dwNumRingModes;
unsigned dwNumButtonLamps;
unsigned dwButtonModesSize;
unsigned dwButtonModesOffset;
unsigned dwButtonFunctionsSize;
unsigned dwButtonFunctionsOffset;
unsigned dwLampModesSize;
unsigned dwLampModesOffset;
unsigned dwNumSetData;
unsigned dwSetDataSize;
unsigned dwSetDataOffset;
unsigned dwNumGetData;
unsigned dwGetDataSize;
unsigned dwGetDataOffset;
unsigned dwDevSpecificSize;
unsigned dwDevSpecificOffset;
unsigned dwDeviceClassesSize;
unsigned dwDeviceClassesOffset;
unsigned dwPhoneFeatures;
unsigned dwSettableHandsetHookSwitchModes;
unsigned dwSettableSpeakerHookSwitchModes;
unsigned dwSettableHeadsetHookSwitchModes;
unsigned dwMonitoredHandsetHookSwitchModes;
unsigned dwMonitoredSpeakerHookSwitchModes;
unsigned dwMonitoredHeadsetHookSwitchModes;
} ;
#pragma pack(pop)
struct TPHONEEXTENSIONID;
typedef TPHONEEXTENSIONID *LPPHONEEXTENSIONID;
typedef TPHONEEXTENSIONID *PPHONEEXTENSIONID;
#pragma pack(push,1)
struct TPHONEEXTENSIONID
{
public:
unsigned dwExtensionID0;
unsigned dwExtensionID1;
unsigned dwExtensionID2;
unsigned dwExtensionID3;
} ;
#pragma pack(pop)
struct TPHONEINITIALIZEEXPARAMS;
typedef TPHONEINITIALIZEEXPARAMS *LPPHONEINITIALIZEEXPARAMS;
typedef TPHONEINITIALIZEEXPARAMS *PPHONEINITIALIZEEXPARAMS;
#pragma pack(push,1)
struct TPHONEINITIALIZEEXPARAMS
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwOptions;
#pragma pack(push,1)
THandleUnion Handles;
#pragma pack(pop)
unsigned dwCompletionKey;
} ;
#pragma pack(pop)
struct TPHONEMESSAGE;
typedef TPHONEMESSAGE *LPPHONEMESSAGE;
typedef TPHONEMESSAGE *PPHONEMESSAGE;
#pragma pack(push,1)
struct TPHONEMESSAGE
{
public:
unsigned hDevice;
unsigned dwMessageID;
unsigned dwCallbackInstance;
unsigned dwParam1;
unsigned dwParam2;
unsigned dwParam3;
} ;
#pragma pack(pop)
struct TPHONESTATUS;
typedef TPHONESTATUS *LPPHONESTATUS;
typedef TPHONESTATUS *PPHONESTATUS;
#pragma pack(push,1)
struct TPHONESTATUS
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwStatusFlags;
unsigned dwNumOwners;
unsigned dwNumMonitors;
unsigned dwRingMode;
unsigned dwRingVolume;
unsigned dwHandsetHookSwitchMode;
unsigned dwHandsetVolume;
unsigned dwHandsetGain;
unsigned dwSpeakerHookSwitchMode;
unsigned dwSpeakerVolume;
unsigned dwSpeakerGain;
unsigned dwHeadsetHookSwitchMode;
unsigned dwHeadsetVolume;
unsigned dwHeadsetGain;
unsigned dwDisplaySize;
unsigned dwDisplayOffset;
unsigned dwLampModesSize;
unsigned dwLampModesOffset;
unsigned dwOwnerNameSize;
unsigned dwOwnerNameOffset;
unsigned dwDevSpecificSize;
unsigned dwDevSpecificOffset;
unsigned dwPhoneFeatures;
} ;
#pragma pack(pop)
struct TVARSTRING;
typedef TVARSTRING *LPVARSTRING;
typedef TVARSTRING *PVARSTRING;
#pragma pack(push,1)
struct TVARSTRING
{
public:
unsigned dwTotalSize;
unsigned dwNeededSize;
unsigned dwUsedSize;
unsigned dwStringFormat;
unsigned dwStringSize;
unsigned dwStringOffset;
} ;
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
static const int TAPI_CURRENT_VERSION = 0x20000;
static const Shortint LINE_ADDRESSSTATE = 0x0;
static const Shortint LINE_CALLINFO = 0x1;
static const Shortint LINE_CALLSTATE = 0x2;
static const Shortint LINE_CLOSE = 0x3;
static const Shortint LINE_DEVSPECIFIC = 0x4;
static const Shortint LINE_DEVSPECIFICFEATURE = 0x5;
static const Shortint LINE_GATHERDIGITS = 0x6;
static const Shortint LINE_GENERATE = 0x7;
static const Shortint LINE_LINEDEVSTATE = 0x8;
static const Shortint LINE_MONITORDIGITS = 0x9;
static const Shortint LINE_MONITORMEDIA = 0xa;
static const Shortint LINE_MONITORTONE = 0xb;
static const Shortint LINE_REPLY = 0xc;
static const Shortint LINE_REQUEST = 0xd;
static const Shortint PHONE_BUTTON = 0xe;
static const Shortint PHONE_CLOSE = 0xf;
static const Shortint PHONE_DEVSPECIFIC = 0x10;
static const Shortint PHONE_REPLY = 0x11;
static const Shortint PHONE_STATE = 0x12;
static const Shortint LINE_CREATE = 0x13;
static const Shortint PHONE_CREATE = 0x14;
static const Shortint LINE_AGENTSPECIFIC = 0x15;
static const Shortint LINE_AGENTSTATUS = 0x16;
static const Shortint LINE_APPNEWCALL = 0x17;
static const Shortint LINE_PROXYREQUEST = 0x18;
static const Shortint LINE_REMOVE = 0x19;
static const Shortint PHONE_REMOVE = 0x1a;
static const unsigned INITIALIZE_NEGOTIATION = 0xffffffff;
static const Shortint LINEADDRCAPFLAGS_FWDNUMRINGS = 0x1;
static const Shortint LINEADDRCAPFLAGS_PICKUPGROUPID = 0x2;
static const Shortint LINEADDRCAPFLAGS_SECURE = 0x4;
static const Shortint LINEADDRCAPFLAGS_BLOCKIDDEFAULT = 0x8;
static const Shortint LINEADDRCAPFLAGS_BLOCKIDOVERRIDE = 0x10;
static const Shortint LINEADDRCAPFLAGS_DIALED = 0x20;
static const Shortint LINEADDRCAPFLAGS_ORIGOFFHOOK = 0x40;
static const Byte LINEADDRCAPFLAGS_DESTOFFHOOK = 0x80;
static const Word LINEADDRCAPFLAGS_FWDCONSULT = 0x100;
static const Word LINEADDRCAPFLAGS_SETUPCONFNULL = 0x200;
static const Word LINEADDRCAPFLAGS_AUTORECONNECT = 0x400;
static const Word LINEADDRCAPFLAGS_COMPLETIONID = 0x800;
static const Word LINEADDRCAPFLAGS_TRANSFERHELD = 0x1000;
static const Word LINEADDRCAPFLAGS_TRANSFERMAKE = 0x2000;
static const Word LINEADDRCAPFLAGS_CONFERENCEHELD = 0x4000;
static const Word LINEADDRCAPFLAGS_CONFERENCEMAKE = 0x8000;
static const int LINEADDRCAPFLAGS_PARTIALDIAL = 0x10000;
static const int LINEADDRCAPFLAGS_FWDSTATUSVALID = 0x20000;
static const int LINEADDRCAPFLAGS_FWDINTEXTADDR = 0x40000;
static const int LINEADDRCAPFLAGS_FWDBUSYNAADDR = 0x80000;
static const int LINEADDRCAPFLAGS_ACCEPTTOALERT = 0x100000;
static const int LINEADDRCAPFLAGS_CONFDROP = 0x200000;
static const int LINEADDRCAPFLAGS_PICKUPCALLWAIT = 0x400000;
static const int LINEADDRCAPFLAGS_PREDICTIVEDIALER = 0x800000;
static const int LINEADDRCAPFLAGS_QUEUE = 0x1000000;
static const int LINEADDRCAPFLAGS_ROUTEPOINT = 0x2000000;
static const int LINEADDRCAPFLAGS_HOLDMAKESNEW = 0x4000000;
static const int LINEADDRCAPFLAGS_NOINTERNALCALLS = 0x8000000;
static const int LINEADDRCAPFLAGS_NOEXTERNALCALLS = 0x10000000;
static const int LINEADDRCAPFLAGS_SETCALLINGID = 0x20000000;
static const Shortint LINEADDRESSMODE_ADDRESSID = 0x1;
static const Shortint LINEADDRESSMODE_DIALABLEADDR = 0x2;
static const Shortint LINEADDRESSSHARING_PRIVATE = 0x1;
static const Shortint LINEADDRESSSHARING_BRIDGEDEXCL = 0x2;
static const Shortint LINEADDRESSSHARING_BRIDGEDNEW = 0x4;
static const Shortint LINEADDRESSSHARING_BRIDGEDSHARED = 0x8;
static const Shortint LINEADDRESSSHARING_MONITORED = 0x10;
static const Shortint LINEADDRESSSTATE_OTHER = 0x1;
static const Shortint LINEADDRESSSTATE_DEVSPECIFIC = 0x2;
static const Shortint LINEADDRESSSTATE_INUSEZERO = 0x4;
static const Shortint LINEADDRESSSTATE_INUSEONE = 0x8;
static const Shortint LINEADDRESSSTATE_INUSEMANY = 0x10;
static const Shortint LINEADDRESSSTATE_NUMCALLS = 0x20;
static const Shortint LINEADDRESSSTATE_FORWARD = 0x40;
static const Byte LINEADDRESSSTATE_TERMINALS = 0x80;
static const Word LINEADDRESSSTATE_CAPSCHANGE = 0x100;
static const Shortint LINEADDRFEATURE_FORWARD = 0x1;
static const Shortint LINEADDRFEATURE_MAKECALL = 0x2;
static const Shortint LINEADDRFEATURE_PICKUP = 0x4;
static const Shortint LINEADDRFEATURE_SETMEDIACONTROL = 0x8;
static const Shortint LINEADDRFEATURE_SETTERMINAL = 0x10;
static const Shortint LINEADDRFEATURE_SETUPCONF = 0x20;
static const Shortint LINEADDRFEATURE_UNCOMPLETECALL = 0x40;
static const Byte LINEADDRFEATURE_UNPARK = 0x80;
static const Word LINEADDRFEATURE_PICKUPHELD = 0x100;
static const Word LINEADDRFEATURE_PICKUPGROUP = 0x200;
static const Word LINEADDRFEATURE_PICKUPDIRECT = 0x400;
static const Word LINEADDRFEATURE_PICKUPWAITING = 0x800;
static const Word LINEADDRFEATURE_FORWARDFWD = 0x1000;
static const Word LINEADDRFEATURE_FORWARDDND = 0x2000;
static const Shortint LINEAGENTFEATURE_SETAGENTGROUP = 0x1;
static const Shortint LINEAGENTFEATURE_SETAGENTSTATE = 0x2;
static const Shortint LINEAGENTFEATURE_SETAGENTACTIVITY = 0x4;
static const Shortint LINEAGENTFEATURE_AGENTSPECIFIC = 0x8;
static const Shortint LINEAGENTFEATURE_GETAGENTACTIVITYLIST = 0x10;
static const Shortint LINEAGENTFEATURE_GETAGENTGROUP = 0x20;
static const Shortint LINEAGENTSTATE_LOGGEDOFF = 0x1;
static const Shortint LINEAGENTSTATE_NOTREADY = 0x2;
static const Shortint LINEAGENTSTATE_READY = 0x4;
static const Shortint LINEAGENTSTATE_BUSYACD = 0x8;
static const Shortint LINEAGENTSTATE_BUSYINCOMING = 0x10;
static const Shortint LINEAGENTSTATE_BUSYOUTBOUND = 0x20;
static const Shortint LINEAGENTSTATE_BUSYOTHER = 0x40;
static const Byte LINEAGENTSTATE_WORKINGAFTERCALL = 0x80;
static const Word LINEAGENTSTATE_UNKNOWN = 0x100;
static const Word LINEAGENTSTATE_UNAVAIL = 0x200;
static const Shortint LINEAGENTSTATUS_GROUP = 0x1;
static const Shortint LINEAGENTSTATUS_STATE = 0x2;
static const Shortint LINEAGENTSTATUS_NEXTSTATE = 0x4;
static const Shortint LINEAGENTSTATUS_ACTIVITY = 0x8;
static const Shortint LINEAGENTSTATUS_ACTIVITYLIST = 0x10;
static const Shortint LINEAGENTSTATUS_GROUPLIST = 0x20;
static const Shortint LINEAGENTSTATUS_CAPSCHANGE = 0x40;
static const Byte LINEAGENTSTATUS_VALIDSTATES = 0x80;
static const Word LINEAGENTSTATUS_VALIDNEXTSTATES = 0x100;
static const Shortint LINEANSWERMODE_NONE = 0x1;
static const Shortint LINEANSWERMODE_DROP = 0x2;
static const Shortint LINEANSWERMODE_HOLD = 0x4;
static const Shortint LINEBEARERMODE_VOICE = 0x1;
static const Shortint LINEBEARERMODE_SPEECH = 0x2;
static const Shortint LINEBEARERMODE_MULTIUSE = 0x4;
static const Shortint LINEBEARERMODE_DATA = 0x8;
static const Shortint LINEBEARERMODE_ALTSPEECHDATA = 0x10;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -