mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
#include <windows.h>
|
|
#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 <stdarg.h>
|
|
#include <stdio.h>
|
|
void CDECL SPTrace(LPCSTR pszFormat, ...);
|
|
#define DebugMsg(_x_) SPTrace _x_
|
|
#else
|
|
#define DebugMsg(_x_)
|
|
#endif
|
|
|
|
|
|
|