home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / H / PMPIC.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  4KB  |  120 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /****************************** Module Header ******************************\
  13. *
  14. * Module Name: PMPIC.H
  15. *
  16. * OS/2 Presentation Manager Picture functions include file.
  17. *
  18. *
  19. * ===========================================================================
  20. *
  21. * Comments at the end of each typedef line give the name tags used in
  22. * the assembler include version of this file.
  23. *
  24. * The assembler include version of this file excludes lines between XLATOFF
  25. * and XLATON comments.
  26. *
  27. #ifndef __IBMC__
  28.    * The public version of this file (as shipped with the OS/2 Toolkit
  29.    * product) excludes all non 32-bit material marked in this file
  30.    * as well as any areas specifically marked with __IBMC__ conditional
  31.    * sections - including this paragraph. The H2IBMH rexx command file
  32.    * removes these sections.
  33. #endif
  34. \***************************************************************************/
  35.  
  36. /* XLATOFF */
  37. #ifdef __IBMC__
  38.    #pragma checkout( suspend )
  39.       #ifndef __CHKHDR__
  40.          #pragma checkout( suspend )
  41.       #endif
  42.    #pragma checkout( resume )
  43. #endif
  44. /* XLATON */
  45.  
  46. #define PIC_INCLUDED
  47.  
  48. #ifndef INCL_32         /* If neither INCL_32 or INCL_16 set already */
  49.    #ifndef INCL_16      /* find out from compiler if 32-bit or not.  */
  50.      #ifdef M_I386
  51.         #define INCL_32 /* Compiling for 32-bit */
  52.      #else
  53.         #define INCL_16 /* Compiling for 16-bit */
  54.      #endif
  55.   #endif
  56. #endif
  57.  
  58. #ifdef INCL_16
  59.    /* XLATOFF */
  60.    #define PicPrint Pic16Print
  61.    #define PicIchg Pic16Ichg
  62.    #define PrfPif2Met Prf16Pif2Met
  63.    /* XLATON */
  64. #endif /* INCL_16 */
  65.  
  66. #ifndef __IBMC__
  67. /* This stuff is private, should not be here. As a temporary          */
  68. /* place it within a not-IBMC bracket so that it is excluded from the */
  69. /* toolkit                                                            */
  70. typedef struct _METPARAMS {  /* metp */
  71.    PSZ read_filename;
  72.    PSZ write_filename;
  73.    LONG EbcdicCP;
  74.    LONG D_EbcdicCP;
  75.    LONG SymSetNameCP;
  76.    LONG AsciiCP;
  77.    LONG Options;
  78. } METPARAMS;
  79. typedef METPARAMS FAR *PMETPARAMS;
  80. #endif
  81.  
  82. /*** type of picture to print **********************************************/
  83. #define PIP_MF       1L
  84. #define PIP_PIF      2L
  85.  
  86. /*** type of conversion required *******************************************/
  87. #define PIC_PIFTOMET 0L
  88. #define PIC_SSTOFONT 2L
  89.  
  90. BOOL APIENTRY PicPrint(HAB hab,
  91.                        PSZ pszFilename,
  92.                        LONG lType,
  93.                        PSZ pszParams);
  94.  
  95. BOOL APIENTRY PicIchg(HAB hab,
  96.                       PSZ pszFilename1,
  97.                       PSZ pszFilename2,
  98.                       LONG lType);
  99.  
  100. #ifndef __IBMC__
  101. /* This stuff is private, should not be here. As a temporary          */
  102. /* place it within a not-IBMC bracket so that it is excluded from the */
  103. /* toolkit                                                            */
  104. BOOL APIENTRY PrfPif2Met(HAB hab,
  105.                          USHORT whatisthis,
  106.                          PMETPARAMS metParams);
  107. #endif
  108.  
  109. /* XLATOFF */
  110. #ifdef __IBMC__
  111.    #pragma checkout( suspend )
  112.       #ifndef __CHKHDR__
  113.          #pragma checkout( resume )
  114.       #endif
  115.    #pragma checkout( resume )
  116. #endif
  117. /* XLATON */
  118.  
  119. /**************************** end of file **********************************/
  120.