home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / prnt1.zip / AppDefs.H < prev    next >
C/C++ Source or Header  |  1995-02-10  |  5KB  |  107 lines

  1.  
  2. /* appdefs.h        Created:    1995-02-09  Revised:            */
  3.  
  4. /* Module Definition Header                        */
  5.  
  6. /************************************************************************/
  7. /************************************************************************/
  8. /************************************************************************/
  9. /* DISCLAIMER OF WARRANTIES:                        */
  10. /* -------------------------                        */
  11. /* The following [enclosed] code is sample code    created    by IBM        */
  12. /* Corporation and Prominare Inc.  This    sample code is not part    of any    */
  13. /* standard IBM    product    and is provided    to you solely for the purpose    */
  14. /* of assisting    you in the development of your applications.  The code    */
  15. /* is provided "AS IS",    without    warranty of any    kind.  Neither IBM nor    */
  16. /* Prominare shall be liable for any damages arising out of your    */
  17. /* use of the sample code, even    if they    have been advised of the    */
  18. /* possibility of such damages.                        */
  19. /************************************************************************/
  20. /************************************************************************/
  21. /************************************************************************/
  22. /*               D I S C L A I M E R                */
  23. /* This    code is    provided on an as is basis with    no implied support.    */
  24. /* It should be    considered freeware that cannot    be rebundled as        */
  25. /* part    of a larger "*ware" offering without our consent.        */
  26. /************************************************************************/
  27. /************************************************************************/
  28. /************************************************************************/
  29.  
  30. /* Copyright ╕ International Business Machines Corp., 1995.        */
  31. /* Copyright ╕ 1995  Prominare Inc.  All Rights    Reserved.        */
  32.  
  33.  
  34.  
  35. /************************************************************************/
  36. /************************************************************************/
  37. /*    Structure Definitions                        */
  38. /************************************************************************/
  39. /************************************************************************/
  40.  
  41.  
  42. typedef    struct _QUEINFO
  43.    {
  44.    PSZ           pszName;           /* Device Name            */
  45.    PSZ           pszDriverName;       /* Driver Name            */
  46.    PSZ           pszPrinters;       /* Printers                */
  47.    PVOID       pDriverData;       /* Device Data            */
  48.    } QUEINFO ;           /* quei */
  49.  
  50. typedef    QUEINFO    *PQUEINFO; /* pquei */
  51.  
  52. typedef    struct _PRN
  53.    {
  54.    HAB        hAB;           /* Anchor block for list        */
  55.    CHAR        szQueue[256];       /* Default Queue            */
  56.    INT        iQueue;           /* Selected Printer Index        */
  57.    INT        cQueues;       /* Total Queue Count            */
  58.    PQUEINFO    pquei;           /* Queue Information            */
  59.    } PRN ;           /* prn */
  60.  
  61. typedef    PRN *PPRN;       /* pprn */
  62.  
  63.  
  64. /************************************************************************/
  65. /************************************************************************/
  66. /*    Global Variable    Definitions                    */
  67. /************************************************************************/
  68. /************************************************************************/
  69.  
  70. extern FONTMETRICS fm;           /* Font Metrics Info            */
  71. extern HSWITCH       hSwitch;       /* Task List    Entry Handle        */
  72. extern HAB       hAB;           /* Program Anchor Block Handle    */
  73.  
  74. extern HMQ  hmqPrnSetup;       /* Program Message Queue Handle    */
  75. extern HWND hwndPrnSetup;       /* Client Window Handle        */
  76. extern HWND hwndPrnSetupFrame;       /* Frame Window Handle        */
  77. extern HWND hmenuPrnSetup;       /* Menu Handle            */
  78.  
  79. extern HWND hwndHelp;           /* Help Window Handle        */
  80. extern HELPINIT    helpinit;       /* Help Initialization Table        */
  81.  
  82. extern PRN  prn;           /* Printer Control Holder        */
  83.  
  84.  
  85. /************************************************************************/
  86. /************************************************************************/
  87. /*    Function Prototype Definitions                    */
  88. /************************************************************************/
  89. /************************************************************************/
  90.  
  91. VOID    InitApp(HWND hwndFrame,    HWND hwndClient, PSZ pszWindowListTitle);
  92. HWND    CreateStdWindow(HWND hwndParent, ULONG flStyle,    ULONG flCreateFlags,
  93.             PSZ pszClientClass, PSZ    pszTitle, ULONG    styleClient,
  94.             HMODULE    hmod, ULONG idResources, PHWND phwndClient,
  95.             LONG x,    LONG y,    LONG cx, LONG cy);
  96. MRESULT    PDSKeyProc(HWND    hWnd, ULONG msg, MPARAM    mp1, MPARAM mp2);
  97. VOID    PDSGetTemplate(HWND hWnd, ULONG    id);
  98.  
  99. MRESULT    EXPENTRY PrintDriverWndProc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  100.  
  101. BOOL    PrnCreatePrinterList(PPRN pprn);
  102. BOOL    PrnDestroyPrinterList(PPRN pprn);
  103. HDC    PrnOpenDC(PPRN pprn, PSZ pszDataType);
  104. BOOL    PrnQueryJobProperties(PPRN pprn, INT iQueue);
  105. PSZ    PrnQueryPrinterName(PPRN pprn);
  106. MRESULT    EXPENTRY PrnSetupDlgProc(HWND hWnd, ULONG msg, MPARAM mp1, MPARAM mp2);
  107.