|
|
1.1 ! root 1: ! 2: /******************************************************************************\ ! 3: * This is a part of the Microsoft Source Code Samples. ! 4: * Copyright (C) 1993 Microsoft Corporation. ! 5: * All rights reserved. ! 6: * This source code is only intended as a supplement to ! 7: * Microsoft Development Tools and/or WinHelp documentation. ! 8: * See these sources for detailed information regarding the ! 9: * Microsoft samples programs. ! 10: \******************************************************************************/ ! 11: ! 12: #define MAX_PIPE_INSTANCES 100 ! 13: ! 14: #define LINE_LEN 80 ! 15: #define NAME_SIZE 25 ! 16: ! 17: // Bitmaps and coordinates. ! 18: #define END_LIVE 1 ! 19: #define END_DEAD 2 ! 20: #define MID_LIVE 3 ! 21: #define MID_DEAD 4 ! 22: #define BITMAP_X 20 ! 23: #define BITMAP_Y 32 ! 24: #define NAME_X 60 ! 25: #define NAME_Y 10 ! 26: ! 27: // Buffers and pipe symbolic constants. ! 28: #define IN_BUF_SIZE 1000 ! 29: #define OUT_BUF_SIZE 1000 ! 30: #define TIME_OUT 0 ! 31: #define PLEASE_READ 1000 ! 32: #define PLEASE_WRITE 1000 ! 33: ! 34: // Structure used to hold information about a pipe client. ! 35: // They're used as array elements. ! 36: typedef struct { HANDLE hPipe; ! 37: HANDLE hEvent; ! 38: OVERLAPPED overLap; ! 39: BOOL live; ! 40: CHAR Name[NAME_SIZE]; ! 41: } WRTHANDLE; ! 42: ! 43: ! 44: LONG CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM); ! 45: VOID ServerProc (HWND *); ! 46: VOID TellAll (CHAR *); ! 47: VOID DrawBranch(HDC);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.