home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / IBMH / PMAVIO.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  6KB  |  155 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: PMAVIO.H
  15. *
  16. * OS/2 Presentation Manager AVIO constants, types and function declarations
  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. \***************************************************************************/
  28.  
  29. /* XLATOFF */
  30. #ifdef __IBMC__
  31.    #pragma checkout( suspend )
  32.    #ifndef __CHKHDR__
  33.       #pragma checkout( suspend )
  34.    #endif
  35.    #pragma checkout( resume )
  36. #endif
  37. /* XLATON */
  38.  
  39. #define AVIO_INCLUDED
  40.  
  41.  
  42. /* XLATOFF */
  43.  
  44. #define Vio16Associate         VIO16ASSOCIATE
  45. #define Vio16CreateLogFont     VIO16CREATELOGFONT
  46. #define Vio16CreatePS          VIO16CREATEPS
  47. #define Vio16DeleteSetId       VIO16DELETESETID
  48. #define Vio16DestroyPS         VIO16DESTROYPS
  49. #define Vio16GetDeviceCellSize VIO16GETDEVICECELLSIZE
  50. #define Vio16GetOrg            VIO16GETORG
  51. #define Vio16QueryFonts        VIO16QUERYFONTS
  52. #define Vio16QuerySetIds       VIO16QUERYSETIDS
  53. #define Vio16SetDeviceCellSize VIO16SETDEVICECELLSIZE
  54. #define Vio16SetOrg            VIO16SETORG
  55. #define Vio16ShowPS            VIO16SHOWPS
  56. #define Win16DefAVioWindowProc WIN16DEFAVIOWINDOWPROC
  57.  
  58. #define VioAssociate           VIO16ASSOCIATE
  59. #define VioCreateLogFont       VIO16CREATELOGFONT
  60. #define VioCreatePS            VIO16CREATEPS
  61. #define VioDeleteSetId         VIO16DELETESETID
  62. #define VioDestroyPS           VIO16DESTROYPS
  63. #define VioGetDeviceCellSize   VIO16GETDEVICECELLSIZE
  64. #define VioGetOrg              VIO16GETORG
  65. #define VioQueryFonts          VIO16QUERYFONTS
  66. #define VioQuerySetIds         VIO16QUERYSETIDS
  67. #define VioSetDeviceCellSize   VIO16SETDEVICECELLSIZE
  68. #define VioSetOrg              VIO16SETORG
  69. #define VioShowPS              VIO16SHOWPS
  70. #define WinDefAVioWindowProc   WIN16DEFAVIOWINDOWPROC
  71. /* XLATON */
  72.  
  73. typedef USHORT HVPS;        /* hpvs */
  74. typedef HVPS *PHVPS;    /* phpvs */
  75.  
  76. USHORT  APIENTRY16 VioAssociate(HDC hdc,
  77.                                 HVPS hvps);
  78.  
  79. USHORT  APIENTRY16 VioCreateLogFont(PFATTRS pfatattrs,
  80.                                     LONG llcid,
  81.                                     PSTR8 pName,
  82.                                     HVPS hvps);
  83.  
  84. USHORT  APIENTRY16 VioCreatePS(PHVPS phvps,
  85.                                SHORT sdepth,
  86.                                SHORT swidth,
  87.                                SHORT sFormat,
  88.                                SHORT sAttrs,
  89.                                HVPS hvpsReserved);
  90.  
  91. USHORT  APIENTRY16 VioDeleteSetId(LONG llcid,
  92.                                   HVPS hvps);
  93.  
  94. USHORT  APIENTRY16 VioDestroyPS(HVPS hvps);
  95.  
  96. USHORT  APIENTRY16 VioGetDeviceCellSize(PSHORT psHeight,
  97.                                         PSHORT psWidth,
  98.                                         HVPS hvps);
  99.  
  100. USHORT  APIENTRY16 VioGetOrg(PSHORT psRow,
  101.                              PSHORT psColumn,
  102.                              HVPS hvps);
  103.  
  104. USHORT  APIENTRY16 VioQueryFonts(PLONG plRemfonts,
  105.                                  PFONTMETRICS afmMetrics,
  106.                                  LONG lMetricsLength,
  107.                                  PLONG plFonts,
  108.                                  PSZ pszFacename,
  109.                                  ULONG flOptions,
  110.                                  HVPS hvps);
  111.  
  112. USHORT  APIENTRY16 VioQuerySetIds(PLONG allcids,
  113.                                   PSTR8 pNames,
  114.                                   PLONG alTypes,
  115.                                   LONG lcount,
  116.                                   HVPS hvps);
  117.  
  118. USHORT  APIENTRY16 VioSetDeviceCellSize(SHORT sHeight,
  119.                                         SHORT sWidth,
  120.                                         HVPS hvps);
  121.  
  122. USHORT  APIENTRY16 VioSetOrg(SHORT sRow,
  123.                              SHORT sColumn,
  124.                              HVPS hvps);
  125.  
  126. USHORT  APIENTRY16 VioShowPS(SHORT sDepth,
  127.                              SHORT sWidth,
  128.                              SHORT soffCell,
  129.                              HVPS hvps);
  130.  
  131. /************************ Public Function *******************************
  132. * WinDefAVioWindowProc -- Default message processing for AVio PS's
  133. ************************************************************************/
  134. /* mp1 and mp2 are defined as ULONG because MPARAM is a pointer type and */
  135. /* 32-bit compilers will thunk pointer types passed to 16-bit routines.  */
  136. /* This is not what is desired for WM_SIZE processing so we will declare */
  137. /* the function with ULONGs, non-pointer types.                          */
  138.  
  139. MRESULT APIENTRY16 WinDefAVioWindowProc(HWND hwnd,
  140.                                         USHORT msg,
  141.                                         ULONG mp1,
  142.                                         ULONG mp2);
  143.  
  144. /* XLATOFF */
  145. #ifdef __IBMC__
  146.    #pragma checkout( suspend )
  147.    #ifndef __CHKHDR__
  148.       #pragma checkout( resume )
  149.    #endif
  150.    #pragma checkout( resume )
  151. #endif
  152. /* XLATON */
  153.  
  154. /**************************** end of file **********************************/
  155.