home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / include / os2 / os2def.h < prev    next >
C/C++ Source or Header  |  1997-04-02  |  17KB  |  640 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: OS2DEF.H
  4. *
  5. * OS/2 Common Definitions file
  6. *
  7. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  8. *
  9. * ===========================================================================
  10. *
  11. * Comments at the end of each typedef line give the name tags used in
  12. * the assembler include version of this file.
  13. *
  14. * The assembler include version of this file excludes lines between NOINC
  15. * and INC comments.
  16. *
  17. \***************************************************************************/
  18.  
  19. #if __IBMC__ || __IBMCPP__
  20. #pragma info( none )
  21. #ifndef __CHKHDR__
  22.    #pragma info( none )
  23. #endif
  24. #pragma info( restore )
  25. #endif
  26. #ifdef __cplusplus
  27.       extern "C" {
  28. #endif
  29.  
  30. #ifndef __OS2DEF__
  31. /* NOINC */
  32. #define __OS2DEF__
  33. /* INC */
  34.  
  35. #define OS2DEF_INCLUDED
  36.  
  37.  
  38.  
  39. /* NOINC */
  40. #define FAR         /* this will be deleted shortly */
  41. #define NEAR        /* this will be deleted shortly */
  42.  
  43. #if defined(__IBMC__) || defined(__IBMCPP__)
  44. #define APIENTRY    _System
  45. #else
  46.    #define APIENTRY
  47. #endif
  48. #if defined(__IBMC__) || defined(__IBMCPP__)
  49. #define EXPENTRY    _System
  50. #else
  51.    #define EXPENTRY
  52.    #define _Seg16
  53.    #define _Far16
  54.    #define _Pascal
  55.    #define _Optlink
  56.    #define _optlink
  57.    #define _Cdecl
  58.    #define _cdecl
  59.    typedef unsigned long DWORD;
  60. #endif
  61.  
  62. #define APIENTRY16  _Far16 _Pascal
  63. #define PASCAL16    _Far16 _Pascal
  64. #define CDECL16     _Far16 _Cdecl
  65.  
  66. #define VOID        void
  67. /* INC */
  68.  
  69. typedef unsigned long  APIRET;
  70. typedef unsigned short APIRET16;
  71. typedef unsigned long  APIRET32;
  72.  
  73. #ifndef FALSE
  74.    #define FALSE   0
  75. #endif
  76.  
  77. #ifndef TRUE
  78.    #define TRUE    1
  79. #endif
  80.  
  81. #ifndef NULL
  82.    #ifdef __cplusplus
  83.       #define NULL 0
  84.    #else
  85.      #define NULL ((void *)0)
  86.    #endif
  87. #endif
  88.  
  89. typedef unsigned short   SHANDLE;
  90. typedef unsigned long    LHANDLE;
  91.  
  92. #define NULLHANDLE    ( (LHANDLE) 0)
  93. #define NULLSHANDLE   ( (SHANDLE) 0)
  94.  
  95. /* NOINC */
  96. #define CHAR    char            /* ch  */
  97. #define SHORT   short           /* s   */
  98. #define LONG    long            /* l   */
  99.  
  100. #ifndef INCL_SAADEFS
  101.    #define INT  int             /* i   */
  102. #endif /* !INCL_SAADEFS */
  103. /* INC */
  104.  
  105. typedef unsigned char  UCHAR;   /* uch */
  106. typedef unsigned short USHORT;  /* us  */
  107. typedef unsigned long  ULONG;   /* ul  */
  108.  
  109. #ifndef INCL_SAADEFS
  110.    typedef unsigned int UINT;   /* ui  */
  111. #endif /* !INCL_SAADEFS */
  112.  
  113. typedef UCHAR     * _Seg16 PUCHAR16;
  114. typedef CHAR      * _Seg16 PCHAR16;
  115.  
  116. typedef char BYTE;     /* b   */
  117.  
  118. typedef char *PSZ;
  119. typedef char *NPSZ;
  120.  
  121. typedef char *PCH;
  122. typedef char *NPCH;
  123. typedef const char *PCSZ;
  124.  
  125. typedef int ( APIENTRY _PFN)  ();
  126. typedef _PFN    *PFN;
  127. typedef int ( APIENTRY _NPFN)  ();
  128. typedef _NPFN   *NPFN;
  129.  
  130.  
  131. typedef BYTE *PBYTE;
  132. typedef BYTE *NPBYTE;
  133.  
  134. typedef CHAR *PCHAR;
  135. typedef SHORT *PSHORT;
  136. typedef LONG *PLONG;
  137.  
  138. #ifndef INCL_SAADEFS
  139.    typedef INT *PINT;
  140. #endif /* !INCL_SAADEFS */
  141.  
  142. typedef UCHAR *PUCHAR;
  143. typedef USHORT *PUSHORT;
  144. typedef ULONG *PULONG;
  145.  
  146. #ifndef INCL_SAADEFS
  147.    typedef UINT *PUINT;
  148. #endif /* !INCL_SAADEFS */
  149.  
  150. typedef VOID   *PVOID;
  151. typedef PVOID  *PPVOID;
  152. typedef VOID   * _Seg16  PVOID16;
  153.  
  154. typedef unsigned long BOOL;     /* f   */
  155. typedef BOOL *PBOOL;
  156.  
  157. typedef unsigned short  BOOL16;
  158. typedef BOOL16     * _Seg16 PBOOL16;
  159.  
  160. /* NOINC */
  161. #define BOOL32    BOOL
  162. #define PBOOL32   PBOOL
  163. /* INC */
  164.  
  165. /* Quad-word */
  166. /* NOINC */
  167. typedef struct _QWORD          /* qword */
  168. {
  169.    ULONG   ulLo;
  170.    ULONG   ulHi;
  171. } QWORD;
  172. typedef QWORD *PQWORD;
  173. /* INC */
  174.  
  175. #ifndef INCL_SAADEFS
  176.    typedef unsigned short SEL;     /* sel */
  177.    typedef SEL *PSEL;
  178.  
  179.    /*** Useful Helper Macros */
  180.  
  181.    /* Create untyped far pointer from selector and offset */
  182.    #define MAKEP( sel,off ) (( void * )( void * _Seg16 )( (sel) << 16 | (off) ))
  183.    #define MAKE16P( sel,off ) (( void * _Seg16 )( (sel) << 16 | (off) ))
  184.  
  185.    /* Extract selector or offset from far pointer */
  186.    /* Warning:the selectorof macro should not be used*/
  187.    /* for 32 bit objects                             */
  188.    #define SELECTOROF(ptr)     ((((ULONG)(ptr))>>13)|7)
  189.    #define OFFSETOF(p)         (((PUSHORT)&(p))[0])
  190. #endif  /* !INCL_SAADEFS */
  191.  
  192. /* Cast any variable to an instance of the specified type. */
  193. #define MAKETYPE(v, type)   (*((type *)&v))
  194.  
  195. /* Calculate the byte offset of a field in a structure of type type. */
  196. #define FIELDOFFSET(type, field)    ((SHORT)&(((type *)0)->field))
  197.  
  198. /* Combine l & h to form a 32 bit quantity. */
  199. #define MAKEULONG(l, h)  ((ULONG)(((USHORT)(l)) | ((ULONG)((USHORT)(h))) << 16))
  200. #define MAKELONG(l, h)   ((LONG)MAKEULONG(l, h))
  201.  
  202. /* Combine l & h to form a 16 bit quantity. */
  203. #define MAKEUSHORT(l, h) (((USHORT)(l)) | ((USHORT)(h)) << 8)
  204. #define MAKESHORT(l, h)  ((SHORT)MAKEUSHORT(l, h))
  205.  
  206. /* Extract high and low order parts of 16 and 32 bit quantity */
  207. #define LOBYTE(w)       LOUCHAR(w)
  208. #define HIBYTE(w)       HIUCHAR(w)
  209. #define LOUCHAR(w)      ((UCHAR)(w))
  210. #define HIUCHAR(w)      ((UCHAR)(((USHORT)(w) >> 8) & 0xff))
  211. #define LOUSHORT(l)     ((USHORT)((ULONG)l))
  212. #define HIUSHORT(l)     ((USHORT)(((ULONG)(l) >> 16) & 0xffff))
  213.  
  214. /*** Common Error definitions ****/
  215.  
  216. typedef ULONG ERRORID;  /* errid */
  217. typedef ERRORID *PERRORID;
  218.  
  219. /* Combine severity and error code to produce ERRORID */
  220. #define MAKEERRORID(sev, error) (ERRORID)(MAKEULONG((error), (sev)))
  221.  
  222. /* Extract error number from an errorid */
  223. #define ERRORIDERROR(errid)            (LOUSHORT(errid))
  224.  
  225. /* Extract severity from an errorid */
  226. #define ERRORIDSEV(errid)              (HIUSHORT(errid))
  227.  
  228. /* Severity codes */
  229. #define SEVERITY_NOERROR                    0x0000
  230. #define SEVERITY_WARNING                    0x0004
  231. #define SEVERITY_ERROR                      0x0008
  232. #define SEVERITY_SEVERE                     0x000C
  233. #define SEVERITY_UNRECOVERABLE              0x0010
  234.  
  235. /* Base component error values */
  236.  
  237. #define WINERR_BASE     0x1000  /* Window Manager                  */
  238. #define GPIERR_BASE     0x2000  /* Graphics Presentation Interface */
  239. #define DEVERR_BASE     0x3000  /* Device Manager                  */
  240. #define SPLERR_BASE     0x4000  /* Spooler                         */
  241.  
  242. /*** Common types used across components */
  243.  
  244. /*** Common DOS types */
  245.  
  246. typedef LHANDLE HMODULE;        /* hmod */
  247. typedef LHANDLE PID;            /* pid  */
  248. typedef LHANDLE TID;            /* tid  */
  249. typedef LHANDLE HFILE;          /* hf   */
  250. typedef HFILE   *PHFILE;
  251.  
  252. #ifndef INCL_SAADEFS
  253.    typedef USHORT  SGID;        /* sgid */
  254. #endif  /* !INCL_SAADEFS */
  255.  
  256. typedef HMODULE *PHMODULE;
  257. typedef PID *PPID;
  258. typedef TID *PTID;
  259.  
  260. #ifndef INCL_SAADEFS
  261.    #ifndef __HSEM__
  262. /* NOINC */
  263.        #define __HSEM__
  264. /* INC */
  265.        typedef VOID *HSEM;      /* hsem */
  266.        typedef HSEM *PHSEM;
  267.    #endif
  268. #endif  /* !INCL_SAADEFS */
  269.  
  270. /*** Common SUP types */
  271.  
  272. typedef LHANDLE   HAB;         /* hab  */
  273. typedef HAB *PHAB;
  274.  
  275. /*** Common GPI/DEV types */
  276.  
  277. typedef LHANDLE   HPS;         /* hps  */
  278. typedef HPS *PHPS;
  279.  
  280. typedef LHANDLE   HDC;         /* hdc  */
  281. typedef HDC *PHDC;
  282.  
  283. typedef LHANDLE   HRGN;        /* hrgn */
  284. typedef HRGN *PHRGN;
  285.  
  286. typedef LHANDLE   HBITMAP;     /* hbm  */
  287. typedef HBITMAP *PHBITMAP;
  288.  
  289. typedef LHANDLE   HMF;         /* hmf  */
  290. typedef HMF *PHMF;
  291.  
  292. typedef LHANDLE   HPAL;        /* hpal */
  293. typedef HPAL *PHPAL;
  294.  
  295. typedef LONG     COLOR;        /* clr  */
  296. typedef COLOR *PCOLOR;
  297.  
  298. typedef struct _POINTL         /* ptl  */
  299. {
  300.    LONG  x;
  301.    LONG  y;
  302. } POINTL;
  303. typedef POINTL *PPOINTL;
  304. typedef POINTL *NPPOINTL;
  305.  
  306. typedef struct _POINTS         /* pts */
  307. {
  308.    SHORT x;
  309.    SHORT y;
  310. } POINTS;
  311. typedef POINTS *PPOINTS;
  312.  
  313. typedef struct _RECTL          /* rcl */
  314. {
  315.    LONG  xLeft;
  316.    LONG  yBottom;
  317.    LONG  xRight;
  318.    LONG  yTop;
  319. } RECTL;
  320. typedef RECTL *PRECTL;
  321. typedef RECTL *NPRECTL;
  322.  
  323. /* fixed point number - implicit binary point between 2 and 3 hex digits */
  324. typedef  LONG FIXED;     /* fx */
  325. typedef  FIXED *PFIXED;
  326.  
  327. typedef struct _MATRIXLF       /* matlf */
  328. {
  329.    FIXED fxM11;
  330.    FIXED fxM12;
  331.    LONG  lM13;
  332.    FIXED fxM21;
  333.    FIXED fxM22;
  334.    LONG  lM23;
  335.    LONG  lM31;
  336.    LONG  lM32;
  337.    LONG  lM33;
  338. } MATRIXLF;
  339. typedef MATRIXLF *PMATRIXLF;
  340.  
  341. typedef CHAR STR8[8];          /* str8 */
  342. typedef STR8 *PSTR8;
  343.  
  344. /*** common DEV/SPL types */
  345.  
  346. /* structure for Device Driver data */
  347.  
  348. typedef struct _DRIVDATA       /* driv */
  349. {
  350.    LONG    cb;
  351.    LONG    lVersion;
  352.    CHAR    szDeviceName[32];
  353.    CHAR    abGeneralData[1];
  354. } DRIVDATA;
  355. typedef DRIVDATA *PDRIVDATA;
  356.  
  357. /* pointer data for DevOpenDC */
  358.  
  359. typedef PSZ *PDEVOPENDATA;
  360.  
  361. /* array indices for array parameter for DevOpenDC, SplQmOpen or SplQpOpen */
  362.  
  363. #define ADDRESS          0
  364. #ifndef INCL_SAADEFS
  365.    #define DRIVER_NAME      1
  366.    #define DRIVER_DATA      2
  367.    #define DATA_TYPE        3
  368.    #define COMMENT          4
  369.    #define PROC_NAME        5
  370.    #define PROC_PARAMS      6
  371.    #define SPL_PARAMS       7
  372.    #define NETWORK_PARAMS   8
  373.  
  374.    /* structure definition as an alternative of the array parameter */
  375.  
  376.    typedef struct _DEVOPENSTRUC      /* dop */
  377.    {
  378.       PSZ        pszLogAddress;
  379.       PSZ        pszDriverName;
  380.       PDRIVDATA  pdriv;
  381.       PSZ        pszDataType;
  382.       PSZ        pszComment;
  383.       PSZ        pszQueueProcName;
  384.       PSZ        pszQueueProcParams;
  385.       PSZ        pszSpoolerParams;
  386.       PSZ        pszNetworkParams;
  387.    } DEVOPENSTRUC;
  388.    typedef DEVOPENSTRUC *PDEVOPENSTRUC;
  389. #endif  /* !INCL_SAADEFS */
  390.  
  391. /* common PMWP object and PMSTDDLG drag data */
  392.  
  393. typedef struct _PRINTDEST     /* prntdst */
  394. {
  395.    ULONG        cb;
  396.    LONG         lType;
  397.    PSZ          pszToken;
  398.    LONG         lCount;
  399.    PDEVOPENDATA pdopData;
  400.    ULONG        fl;
  401.    PSZ          pszPrinter;
  402. } PRINTDEST;
  403. typedef PRINTDEST *PPRINTDEST;
  404.  
  405. #define PD_JOB_PROPERTY   0x0001      /* Flags for .fl field           */
  406.  
  407. /*** common AVIO/GPI types */
  408.  
  409. /* values of fsSelection field of FATTRS structure */
  410. #define FATTR_SEL_ITALIC        0x0001
  411. #define FATTR_SEL_UNDERSCORE    0x0002
  412. #define FATTR_SEL_OUTLINE       0x0008
  413. #define FATTR_SEL_STRIKEOUT     0x0010
  414. #define FATTR_SEL_BOLD          0x0020
  415.  
  416. /* values of fsType field of FATTRS structure */
  417. #define FATTR_TYPE_KERNING      0x0004
  418. #define FATTR_TYPE_MBCS         0x0008
  419. #define FATTR_TYPE_DBCS         0x0010
  420. #define FATTR_TYPE_ANTIALIASED  0x0020
  421.  
  422. /* values of fsFontUse field of FATTRS structure */
  423. #define FATTR_FONTUSE_NOMIX         0x0002
  424. #define FATTR_FONTUSE_OUTLINE       0x0004
  425. #define FATTR_FONTUSE_TRANSFORMABLE 0x0008
  426. /* size for fields in the font structures */
  427.  
  428. #define FACESIZE 32
  429.  
  430. /* font struct for Vio/GpiCreateLogFont */
  431.  
  432. typedef struct _FATTRS            /* fat */
  433. {
  434.    USHORT  usRecordLength;
  435.    USHORT  fsSelection;
  436.    LONG    lMatch;
  437.    CHAR    szFacename[FACESIZE];
  438.    USHORT  idRegistry;
  439.    USHORT  usCodePage;
  440.    LONG    lMaxBaselineExt;
  441.    LONG    lAveCharWidth;
  442.    USHORT  fsType;
  443.    USHORT  fsFontUse;
  444. } FATTRS;
  445. typedef FATTRS *PFATTRS;
  446.  
  447. /* values of fsType field of FONTMETRICS structure */
  448. #define FM_TYPE_FIXED           0x0001
  449. #define FM_TYPE_LICENSED        0x0002
  450. #define FM_TYPE_KERNING         0x0004
  451. #define FM_TYPE_DBCS            0x0010
  452. #define FM_TYPE_MBCS            0x0018
  453. #define FM_TYPE_64K             0x8000
  454. #define FM_TYPE_ATOMS           0x4000
  455. #define FM_TYPE_FAMTRUNC        0x2000
  456. #define FM_TYPE_FACETRUNC       0x1000
  457.  
  458. /* values of fsDefn field of FONTMETRICS structure */
  459. #define FM_DEFN_OUTLINE         0x0001
  460. #define FM_DEFN_IFI             0x0002
  461. #define FM_DEFN_WIN             0x0004
  462. #define FM_DEFN_GENERIC         0x8000
  463.  
  464. /* values of fsSelection field of FONTMETRICS structure */
  465. #define FM_SEL_ITALIC           0x0001
  466. #define FM_SEL_UNDERSCORE       0x0002
  467. #define FM_SEL_NEGATIVE         0x0004
  468. #define FM_SEL_OUTLINE          0x0008          /* Hollow Outline Font */
  469. #define FM_SEL_STRIKEOUT        0x0010
  470. #define FM_SEL_BOLD             0x0020
  471. #define FM_SEL_ISO9241_TESTED   0x0040
  472.  
  473. /* ISO 9241 is an international standard covering health and safety      */
  474. /* in the work place for users of visual display terminals. Part 3 of    */
  475. /* this standard covers clarity and legibility of text displayed on      */
  476. /* computer screens, it places requirements on minimum sizes and         */
  477. /* luminance contrast. The presence of FM_SEL_ISO9241_TESTED flag in the */
  478. /* font metrics indicates that the font has been tested for compliance   */
  479. /* to the standard. The FM_ISO_XXX flags indicate the results of the     */
  480. /* test on the IBM 9515, 9517 and 9518 color displays at the supported   */
  481. /* dimensions of 640x480 and 1024x768. To ensure compliance the          */
  482. /* sXDeviceRes and sYDeviceRes must also match the target display        */
  483. /* resolution.                                                           */
  484.  
  485. /* values of fbPassed/FailedISO field in the PANOSE structure */
  486. #define FM_ISO_9518_640        0x01
  487. #define FM_ISO_9515_640        0x02
  488. #define FM_ISO_9515_1024       0x04
  489. #define FM_ISO_9517_640        0x08
  490. #define FM_ISO_9517_1024       0x10
  491.  
  492. /* values of fsCapabilities field of FONTMETRICS structure */
  493. #define FM_CAP_NOMIX            0x0001
  494.  
  495. /* font metrics returned by GpiQueryFonts and others */
  496.  
  497. typedef struct _PANOSE   /* panose */
  498. {
  499.    BYTE    bFamilyType;
  500.    BYTE    bSerifStyle;
  501.    BYTE    bWeight;
  502.    BYTE    bProportion;
  503.    BYTE    bContrast;
  504.    BYTE    bStrokeVariation;
  505.    BYTE    bArmStyle;
  506.    BYTE    bLetterform;
  507.    BYTE    bMidline;
  508.    BYTE    bXHeight;
  509.    BYTE    fbPassedISO;
  510.    BYTE    fbFailedISO;
  511. } PANOSE;
  512.  
  513. typedef struct _FONTMETRICS     /* fm */
  514. {
  515.    CHAR    szFamilyname[FACESIZE];
  516.    CHAR    szFacename[FACESIZE];
  517.    USHORT  idRegistry;
  518.    USHORT  usCodePage;
  519.    LONG    lEmHeight;
  520.    LONG    lXHeight;
  521.    LONG    lMaxAscender;
  522.    LONG    lMaxDescender;
  523.    LONG    lLowerCaseAscent;
  524.    LONG    lLowerCaseDescent;
  525.    LONG    lInternalLeading;
  526.    LONG    lExternalLeading;
  527.    LONG    lAveCharWidth;
  528.    LONG    lMaxCharInc;
  529.    LONG    lEmInc;
  530.    LONG    lMaxBaselineExt;
  531.    SHORT   sCharSlope;
  532.    SHORT   sInlineDir;
  533.    SHORT   sCharRot;
  534.    USHORT  usWeightClass;
  535.    USHORT  usWidthClass;
  536.    SHORT   sXDeviceRes;
  537.    SHORT   sYDeviceRes;
  538.    SHORT   sFirstChar;
  539.    SHORT   sLastChar;
  540.    SHORT   sDefaultChar;
  541.    SHORT   sBreakChar;
  542.    SHORT   sNominalPointSize;
  543.    SHORT   sMinimumPointSize;
  544.    SHORT   sMaximumPointSize;
  545.    USHORT  fsType;
  546.    USHORT  fsDefn;
  547.    USHORT  fsSelection;
  548.    USHORT  fsCapabilities;
  549.    LONG    lSubscriptXSize;
  550.    LONG    lSubscriptYSize;
  551.    LONG    lSubscriptXOffset;
  552.    LONG    lSubscriptYOffset;
  553.    LONG    lSuperscriptXSize;
  554.    LONG    lSuperscriptYSize;
  555.    LONG    lSuperscriptXOffset;
  556.    LONG    lSuperscriptYOffset;
  557.    LONG    lUnderscoreSize;
  558.    LONG    lUnderscorePosition;
  559.    LONG    lStrikeoutSize;
  560.    LONG    lStrikeoutPosition;
  561.    SHORT   sKerningPairs;
  562.    SHORT   sFamilyClass;
  563.    LONG    lMatch;
  564.    LONG    FamilyNameAtom;
  565.    LONG    FaceNameAtom;
  566.    PANOSE  panose;
  567. } FONTMETRICS;
  568. typedef FONTMETRICS *PFONTMETRICS;
  569.  
  570. /*** Common WIN types */
  571.  
  572. typedef VOID *MPARAM;      /* mp    */
  573. typedef MPARAM *PMPARAM;   /* pmp   */
  574. typedef VOID *MRESULT;     /* mres  */
  575. typedef MRESULT *PMRESULT; /* pmres */
  576.  
  577. typedef LHANDLE HWND;      /* hwnd */
  578. typedef HWND *PHWND;
  579.  
  580. typedef LHANDLE HMQ;       /* hmq */
  581. typedef LHANDLE *PHMQ;
  582.  
  583. /* NOINC */
  584. #define WRECT RECTL
  585. #define PWRECT PRECTL
  586. #define NPWRECT NPRECTL
  587.  
  588. #define WPOINT POINTL
  589. #define PWPOINT PPOINTL
  590. #define NPWPOINT NPPOINTL
  591. /* INC */
  592.  
  593. typedef struct _ICONINFO {  /* icninf */
  594.    ULONG   cb;                  /* size of ICONINFO structure */
  595.    ULONG   fFormat;
  596.    PSZ     pszFileName;         /* use when fFormat = ICON_FILE */
  597.    HMODULE hmod;                /* use when fFormat = ICON_RESOURCE */
  598.    ULONG   resid;               /* use when fFormat = ICON_RESOURCE */
  599.    ULONG   cbIconData;          /* use when fFormat = ICON_DATA     */
  600.    PVOID   pIconData;           /* use when fFormat = ICON_DATA     */
  601. } ICONINFO;
  602. typedef ICONINFO FAR *PICONINFO;
  603.  
  604. #define ICON_FILE     1         /* flags for fFormat */
  605. #define ICON_RESOURCE 2
  606. #define ICON_DATA     3
  607. #define ICON_CLEAR    4
  608.  
  609. #pragma pack(2) /* force structure alignment packing */
  610.  
  611. /* Binary resources may be bound into application executables or */
  612. /* passed as a parameter when creating a window or dialog        */
  613. /* Currently they must be the same for both 16-bit and 32-bit    */
  614. /* so we pack the structures.                                    */
  615. typedef struct _ACCEL    /* acc */
  616. {
  617.    USHORT  fs;
  618.    USHORT  key;
  619.    USHORT  cmd;
  620. } ACCEL;
  621. typedef ACCEL *PACCEL;
  622.  
  623. #pragma pack()  /* restore packing to default */
  624.  
  625. typedef LHANDLE HPOINTER;
  626.  
  627. #endif /* __OS2DEF__ */
  628.  
  629. #ifdef __cplusplus
  630.         }
  631. #endif
  632. #if __IBMC__ || __IBMCPP__
  633. #pragma info( none )
  634. #ifndef __CHKHDR__
  635.    #pragma info( restore )
  636. #endif
  637. #pragma info( restore )
  638. #endif
  639. /**************************** end of file **********************************/
  640.