home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / printer / getpdriv.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  72 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 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. /******************************************************************************\
  13. *
  14. *                               GETPDRIV.H
  15. *
  16. \******************************************************************************/
  17. #include "strings.h"
  18.  
  19.  
  20. /******************************************************************************\
  21. *                           SYMBOLIC CONSTANTS
  22. \******************************************************************************/
  23.  
  24. #define ERR_MOD_NAME        IDS_ERR_GETPDRIV
  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);
  72.