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

📄 sockman1.h

📁 See Appendix B for a description of the programs included on this companion disk. RESOURCE.WRI iden
💻 H
字号:
// SockMan.h
// Function prototypes and symbolic constants

#include "..\winsock.h"							// Winsock header file

// Function prototypes for SOCKMAN.CPP
LONG DoMenuCommand(HWND, UINT, UINT, LONG);
LONG DoWinsockProgram(HWND, UINT, LONG) ;
LONG FAR PASCAL _export WndProc(HWND, UINT, UINT, LONG);

// Function prototypes for COMMON.CPP
BOOL StartWinsock(VOID);
VOID CenterWindow(HWND);
VOID PaintWindow(LPSTR);

#define WINSOCK_VER_11 			0x0101	// Winsock Version required by SockMan

#define IDM_FILE 						0x01		// Menu Definitions
#define IDM_FILE_CLEAR 			0x11
#define IDM_FILE_PRINT 			0x12
#define IDM_FILE_SAVEAS			0x13
#define IDM_FILE_EXIT 			0x14

#define IDM_APP 						0x02
#define IDM_APP_MAIL 				0x21
#define IDM_APP_FTP 				0x22
 
#define IDM_LOOKUP 					0x03 
#define IDM_LOOKUP_ASYNC 		0x31
#define IDM_LOOKUP_BLOCKING	0x32
 
#define IDM_FINGER 					0x04 
#define IDM_FINGER_ASYNC 		0x41
#define IDM_FINGER_BLOCKING 0x42

#define IDM_TIME 						0x06 
#define IDM_TIME_UTIL				0x61

#define IDM_PING 						0x07
#define IDM_PING_UTIL 			0x70
 
#define IDM_HELP 						0x0F 
#define IDM_HELP_HELP 			0xF1
#define IDM_HELP_ABOUT			0xF2

// Winsock Error Messages
#define MAX_ERR_MESSAGE 		120			// Maximum length for error messages
#define WSASYSNOTREADY_MSG "Underlying network subsystem is not ready for network communication."
#define WSAVERNOTSUPPORTED_MSG "Version of Windows Sockets API support requested is not provided by this particular implementation."
#define WSAEINVAL_MSG "Windows Sockets version specified by application is not supported by this DLL."

// Miscellaneous Definitions
#define MAX_PRINT_BUFFER 		4096		// Maximum length of text to paint

⌨️ 快捷键说明

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