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

📄 main.h

📁 西门子交换机和Dialogic语音板卡连接驱动编程示例
💻 H
字号:
///////////////////////////////////////////////////////////
//          NAME: main.h
//   DESCRIPTION: The entry point into this demo application
//                This demo application is only intended to emulate the Siemens OptiSet 
//                MWI (Message Waiting Indicator). It will send and delete messages to any 
//                user selected extension. This will turn the MWI light on and off. This demo
//                follows the keystroke sequences entered on OptiSet phones to accomplished sending and 
//                deleting messages. No other commands or key sequences are incorporated into 
//                this demo.
//
//////////////////////////////////////////////////////////


// Class names to register with during initialization
#define MAINWINCLASSNAME     "MainWinClass"
#define TRACEWINCLASSNAME    "TraceWinClass"

// Macros for display output and logging
#define OUTPUT               UpdateDisplayMain
#define TRACE                UpdateDisplayTrace
#define LOGERROR             UpdateLogError
#define LOGDATA              UpdateLogResults

#define MAXDISPLAYBUFF       100
#define MAXDISPLAY           100
#define MAXCHAN              256

// Test information structure
typedef struct testinfo {
   int    nChannel;
   int    nExtension;
}TESTINFO, *LPTESTINFO;

// Channel information structure
typedef struct chaninfo {
   int     nDevHandle;
   int     nNetType;
   int     nMsgCnt;
   long    nXmitSlot;
   DV_TPT  tpt;
   DX_XPB  xpb;
   DX_IOTT iott;
   char    szFileName[20];
   int     nMSIIndex;   
}CHANINFO, *LPCHANINFO;

// Main Window callback message processing function
LRESULT CALLBACK MainWndProc(
    HWND hwnd,	         // handle of window
    UINT uMsg,	         // message identifier
    WPARAM wParam,	     // first message parameter
    LPARAM lParam 	     // second message parameter
);

// Message Cracker Prototypes for Main Window
BOOL Main_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct);
void Main_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
void Main_OnClose(HWND hwnd);
void Main_OnDestroy(HWND hwnd);
void Main_OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags);
void Main_OnPaint(HWND hwnd);
void Main_OnSize(HWND hwnd, UINT state, int cx, int cy);
void Main_OnTimer(HWND hwnd, UINT id);

// Trace Window callback message processing function
LRESULT CALLBACK TraceWndProc(
    HWND hwnd,          // handle of window
    UINT uMsg,	        // message identifier
    WPARAM wParam,	    // first message parameter
    LPARAM lParam 	    // second message parameter
);

// Message Cracker Prototypes for Trace Window
BOOL Trace_OnCreate(HWND hwnd, LPCREATESTRUCT lpCreateStruct);
void Trace_OnClose(HWND hwnd);
void Trace_OnPaint(HWND hwnd);
void Trace_OnSize(HWND hwnd, UINT state, int cx, int cy);

// Display/output/logging function prototypes
BOOL UpdateDisplayMain(int nIndex, char * szDispBuff);
BOOL UpdateDisplayTrace(int nIndex, char * szDispBuff);
BOOL UpdateLogError(int nIndex, char * szDispBuff);
BOOL UpdateLogResults(int nIndex, char * szDispBuff);

// Initialize the error and trace logs and windows and test defaults
BOOL InitializeLogs(void);
BOOL InitializeTestDefaults(void);
BOOL LogTestSettings(void);

// General purpose prototypes
void CloseVoxResources(void);

⌨️ 快捷键说明

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