--- mstools/samples/rpc/mandel/mandel.h 2018/08/09 18:20:01 1.1 +++ mstools/samples/rpc/mandel/mandel.h 2018/08/09 18:22:00 1.1.1.3 @@ -2,24 +2,23 @@ MANDEL.H -- Constants and function definitions for MANDEL.C - Copyright (C) 1990 Microsoft Corporation. + Copyright (C) 1990, 1992 Microsoft Corporation ****************************************************************************/ -#define IDM_ABOUT 100 -#define IDM_ZOOMIN 101 -#define IDM_ZOOMOUT 105 -#define IDM_TOP 106 -#define IDM_REDRAW 107 -#define IDM_EXIT 108 -#define IDM_CONTINUOUS 109 - -#define IDM_1LINE 200 +#define IDM_ABOUT 100 +#define IDM_ZOOMIN 101 +#define IDM_ZOOMOUT 105 +#define IDM_TOP 106 +#define IDM_REDRAW 107 +#define IDM_EXIT 108 +#define IDM_CONTINUOUS 109 +#define IDM_SERVER 110 +#define IDD_SERVERNAME 111 +#define IDM_BIND 112 +#define IDM_1LINE 200 #define IDM_2LINES 201 #define IDM_4LINES 202 -#define IDM_8LINES 203 -#define IDM_16LINES 204 -#define IDM_32LINES 205 #define ID_OK 304 @@ -31,16 +30,36 @@ #define WIDTH 300 #define HEIGHT 300 -#define MAXLINES 32 +#define MAXLINES 16 -#ifndef MAXPATHLEN -#define MAXPATHLEN 260 -#endif #define MAXID 64 // saved zoomin operations #define MAX_BUFSIZE (HEIGHT * sizeof(long) * MAXLINES) +#define MENUNAME "MandelMenu" +#define CLASSNAME "MandelClass" +#define ABOUTBOX "AboutBox" +#define SERVERBOX "ServerBox" + +#define POLL_TIME 100 +#define LINES 4 + +#define CNLEN 15 /* computer name length */ +#define UNCLEN CNLEN+2 /* \\computername */ +#ifndef MAXPATHLEN +#define MAXPATHLEN 260 +#endif +#ifndef APIENTRY +#define APIENTRY FAR PASCAL +#endif +#ifndef UNREFERENCED_PARAMETER +#define UNREFERENCED_PARAMETER(P) \ + { \ + (P) = (P); \ + } +#endif + extern int iLines; // A table of servers we know about @@ -88,7 +107,14 @@ BOOL InitApplication(HANDLE); BOOL InitInstance(HANDLE, int); LONG APIENTRY MainWndProc(HWND, UINT, UINT, LONG); BOOL APIENTRY About(HWND, UINT, UINT, LONG); +BOOL APIENTRY Server(HWND, UINT, UINT, LONG); BOOL APIENTRY SaveAsDlgProc(HWND, UINT, UINT, LONG); + +#ifdef RPC +RPC_STATUS Bind(HWND); +extern int fBound; +#endif + void DoSomeWork(HWND, BOOL); void IncPictureID(void);