home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v2.zip / DDKX86 / DBCSDD / H_DBCS / OS2NLSFD.H < prev    next >
Text File  |  1995-04-14  |  4KB  |  111 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT (C) Microsoft Corporation, 1989                                 */
  4. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  5. /*                                                                           */
  6. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  7. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  8. /*    drivers. You may use this code in accordance with the IBM License      */
  9. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  10. /*    Copyright statement may not be removed.                                */
  11. /*                                                                           */
  12. /*****************************************************************************/
  13. /****************************** Module Header ******************************\
  14. *
  15. * Module Name: OS2NLSFD.H
  16. *
  17. *
  18. *
  19. \***************************************************************************/
  20.  
  21. /** font information for GET_INFO  **/
  22.  
  23. typedef struct _FONT_INFO {  /* font_info */
  24.         PFOCAFONT font_info_ptr;
  25.         ULONG     option;
  26.         } FONT_INFO;
  27. typedef FONT_INFO  FAR *PFONT_INFO;
  28.  
  29.  
  30. /** font map for READ and WRITE **/
  31.  
  32. typedef struct _FONT_MAP {  /* font_map */
  33.         USHORT    buffer_length;
  34.         PUSHORT   buffer_ptr;
  35.         USHORT    reserved1;
  36.         PVOID     reserved2;
  37.         ULONG     input_width;
  38.         ULONG     input_height;
  39.         ULONG     output_width;
  40.         ULONG     output_height;
  41.         } FONT_MAP;
  42. typedef FONT_MAP  FAR *PFONT_MAP;
  43.  
  44.  
  45. /** font driver version for GET_VERSION **/
  46.  
  47. typedef struct _FONT_DRIVER_VERSION { /* font_driver_version */
  48.         ULONG     version_number;
  49.         PFD_DESC  fd_desc;
  50.         } FONT_DRIVER_VERSION;
  51. typedef FONT_DRIVER_VERSION  FAR *PFONT_DRIVER_VERSION;
  52.                                                                                                    typedef FONT_DRIVER_VERSION  FAR *PFONT_DRIVER_VERSION;
  53.  
  54.  
  55. /**  Font Driver FinctionID  **/
  56.  
  57. #define DBE_FD_READ                0x00000002L
  58. #define DBE_FD_WRITE               0x00000003L
  59. #define DBE_FD_GET_INFO            0x00000004L
  60. #define DBE_FD_GET_VERSION         0x00000006L
  61.  
  62.  
  63. /** Font INFORMATION OPTION **/
  64.  
  65. #define DBE_FD_FONT_DEFAULT         0x00000000
  66. #define DBE_FD_FONT_NO_CACHE        0x00000004
  67.  
  68.  
  69. /**  Font Driver Return Code  **/
  70.  
  71. #define DBE_FD_NORMAL              0x00000000L
  72. #define DBE_FD_NO_MORE_FONT        0x00000001L
  73. #define DBE_FD_ERROR               0xFFFFFFFFL
  74.  
  75.  
  76. /**  Font Driver Version  Number   **/
  77.  
  78. #define DBE_FD_VERSION_1           1100         /*  PM-J 1.1 */
  79.  
  80.  
  81.  
  82. #define DEVESC_DBE_FONTMANAGEMENT  24450
  83.  
  84.  
  85. /** Extended Font Driver Interface   PMDBCS 1.2 **/
  86.  
  87. #define DBE_FD_VERSION_2           1200
  88.  
  89. #define DBE_FD_QUERY               0x00000005L
  90. #define DBE_FD_OPEN                0x00000007L
  91. #define DBE_FD_CLOSE               0x00000008L
  92.  
  93. #define DBE_FD_LESS_BUFFER         0x00000002L
  94. #define DBE_FD_INVALID_FORMAT      0x00000003L
  95.  
  96. typedef struct _FONT_QUERY { /* Query data structure */
  97.         ULONG     QueryID;
  98.         ULONG     xCellWidth;
  99.         ULONG     yCellHeight;
  100.         ULONG     xCellA;
  101.         ULONG     xCellB;
  102.         ULONG     xCellC;
  103.         ULONG     data_length;
  104.         } FONT_QUERY;
  105. typedef FONT_QUERY  FAR *PFONT_QUERY;
  106.  
  107. #define DBE_FD_QUERY_WIDTHHEIGHT   0x00000001L
  108. #define DBE_FD_QUERY_ABC           0x00000002L
  109. #define DBE_FD_QUERY_LENGTH        0x00000004L
  110.  
  111.