remnet.h

来自「wince下的源代码集合打包」· C头文件 代码 · 共 153 行

H
153
字号
/******************************************************************************Copyright (c) 1995-2000 Microsoft Corporation.  All rights reserved.remnet.h******************************************************************************/#ifndef _REMNET_H_#define _REMNET_H_#include "ras.h"#include "raserror.h"// Function prototypes#ifdef USE_SIP#include <sipapi.h>typedef BOOL (WINAPI* LPFNSIP)(SIPINFO*);typedef DWORD (WINAPI* LPFNSIPSTATUS)();#endiftypedef BOOL     (*INITFUNC)(void);#define	NUM_LV_COLUMNS	3// The data in each list item.typedef struct _ITEMINFO {	TCHAR		EntryName[RAS_MaxEntryName+1];	RASENTRY	Entry;			// Ras Entry	TCHAR		szPhone[256];} ITEMINFO, *PITEMINFO;#define MIN(x,y) ((x < y) ? x : y)// --------------------------------------------------------------------//	// NT DEBUG SUPPORT//// --------------------------------------------------------------------#ifndef UNDER_CE#ifdef DEBUG_inline intDbgPrint (TCHAR *pFormat, ...){	va_list ArgList;	TCHAR	Buffer[256];	int		RetVal;	va_start (ArgList, pFormat);	RetVal = wvsprintf (Buffer, pFormat, ArgList);	OutputDebugString (Buffer);	return RetVal;}#define DEBUGMSG(exp,arg)	((exp) ? DbgPrint arg,1 : (0))#define ASSERT(exp)	((exp) ? 1 : (DbgPrint (TEXT("ASSERT: %s %s %s"),#exp, __FILE__, __LINE__), DebugBreak()))#define DEBUGZONE(b)    (DebugFlag&(0x00000001<<b))extern DWORD	DebugFlag;#else // DEBUG// Retail defines#define DEBUGMSG(exp,arg)	(0)#define ASSERT(exp)			(0)#endif // DEBUG#endif // ndef UNDER_CE// Debug zone definitions (for both CE and NT).//#define ZONE_???		DEBUGZONE(1)#define ZONE_MISC		DEBUGZONE(11)#define ZONE_ALLOC		DEBUGZONE(12)#define ZONE_FUNCTION	DEBUGZONE(13)#define ZONE_WARN		DEBUGZONE(14)#define ZONE_ERROR		DEBUGZONE(15)#define DLG_PG_1	0#define DLG_PG_2	1#define DLG_PG_3	2#define DLG_PG_4	3#define DLG_PG_5	4#define DLG_TCP_GEN	5#define DLG_TCP_NS	6#define DLG_NUMDLGS 7#define SIP_UP      0#define SIP_DOWN    1// ----------------------------------------------------------------//// Global variables//// ----------------------------------------------------------------extern HINSTANCE	v_hInst;extern HWND			v_hMainWnd;extern HWND			v_hListWnd;extern HWND			v_hCmdBar;extern HWND			v_hDialogWnd;extern HFONT		v_hfont;extern RECT			v_ClientRect;extern RECT			v_ListRect;extern DWORD		v_WizDialog;extern DWORD		v_PrevWizDialog;extern ITEMINFO		EditItem;	// The temp item to edit.extern DWORD		v_DialogPages[];// ----------------------------------------------------------------//// Function Declarations//// ----------------------------------------------------------------// remnet.cLRESULT CALLBACKWndProc (HWND hWnd, UINT message, WPARAM uParam, LPARAM lParam);BOOLInitApplication(HINSTANCE hInstance);BOOL WINAPIInitListViewImageLists(HWND hwndLV);BOOL WINAPIInitListViewColumns(HWND hwndLV);BOOL WINAPIInitListViewItems(HWND hwndLV);BOOLInitInstance(HINSTANCE hInstance, int nCmdShow);void PositionSIP(int nSipState);// remwiz.cLRESULT CALLBACKConnWizDlgProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);void CALLBACK lineCallbackFunc(DWORD dwDevice, DWORD dwMsg, DWORD dwCallbackInstance, 				 DWORD dwParam1, DWORD dwParam2, DWORD dwParam3);intMy_atoi(LPTSTR);BOOLTCP_IP_Properties(HWND hWndOwner, PITEMINFO pItem);#endif // ndef _REMNET_H_

⌨️ 快捷键说明

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