|
|
1.1.1.2 ! 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: 1.1 root 12: /******************************************************************************\ 13: * 14: * GETPDRIV.H 15: * 16: \******************************************************************************/ 17: 18: 19: 20: /******************************************************************************\ 21: * SYMBOLIC CONSTANTS 22: \******************************************************************************/ 23: 24: #define ERR_MOD_NAME "Error: PRINTER.EXE (GETPDRIV.C)" 25: 26: 27: 28: /******************************************************************************\ 29: * GLOBAL VARIABLES 30: \******************************************************************************/ 31: 32: char *gaDrvInfo[] = 33: 34: { "DRIVER_INFO_1", 35: " pName\t\t%s", 36: 37: "DRIVER_INFO_2", 38: " cVersion\t%ld", 39: " pName\t\t%s", 40: " pEnvironment\t%s", 41: " pDriverPath\t%s", 42: " pDataFile\t%s", 43: " pConfigFile\t%s" }; 44: 45: 46: 47: /******************************************************************************\ 48: * EXTERNAL VARIABLES 49: \******************************************************************************/ 50: 51: extern HWND ghwndMain; 52: extern char gszDeviceName []; 53: extern char gszDriverName []; 54: extern char gszPort []; 55: 56: 57: 58: /******************************************************************************\ 59: * MACROS 60: \******************************************************************************/ 61: 62: #define outstr() SendDlgItemMessage (hwnd, DID_LISTBOX, LB_INSERTSTRING, \ 63: (UINT)-1, (LONG) buf); 64: 65: 66: 67: /******************************************************************************\ 68: * FUNCTION PROTOTYPES 69: \******************************************************************************/ 70: 71: BOOL DisplayPrinterDriverInfo (HWND);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.