#include #include "TSPI.H" #include "hmtsprc.h" #define ATSP_VERSION 0x00010004 #define SMALLBUFFER 40 typedef struct lineInfo { // We have only a single call on a single address on a single line // This structure is constructed in TSPI_Initialize LINEEVENT lpfnEventProc; // TAPI event callback function ASYNC_COMPLETION lpfnCompletion; // TAPI Completion callback DWORD lineID; // the tapi ID of our line DWORD dwLineMediaModes; DWORD dwppID; // Our permanent provider ID HTAPILINE htLine; // TAPI opaque line handle HTAPICALL htCall; // TAPI opaque call handle DWORD callState; // The state of this call // DWORD dwRequestID; // for async requests DWORD dwMediaMode; DWORD dwAppSpecific; int hcd; // the associated COM device char port[SMALLBUFFER]; // "COM1" char linename[SMALLBUFFER]; // "My Phone" char lineaddr[SMALLBUFFER]; // "555-1212" char DestAddress[TAPIMAXDESTADDRESSSIZE]; } ATSPLineData; // Debug Message Macro #ifdef DEBUG #include #include void CDECL SPTrace(LPCSTR pszFormat, ...); #define DebugMsg(_x_) SPTrace _x_ #else #define DebugMsg(_x_) #endif