home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / smart21b.zip / SMARTAUX / MEL / MEL.ZIP / os2wdef.h < prev    next >
Text File  |  1995-09-26  |  3KB  |  119 lines

  1. /****************************** Module Header ******************************
  2.  *
  3.  * Module Name: OS2WDEF.H
  4.  *
  5.  * OS/2 Developer API Extensions Common Definitions File
  6.  *
  7.  * Copyright (c) International Business Machines Corporation 1995
  8.  *
  9.  ***************************************************************************/
  10. #ifndef _OS2WDEF_H
  11. #define _OS2WDEF_H
  12.  
  13. #ifdef __IBMC__
  14.    #pragma checkout( suspend )
  15.    #ifndef __CHKHDR__
  16.       #pragma checkout( suspend )
  17.    #endif
  18.    #pragma checkout( resume )
  19. #endif
  20.  
  21.  
  22. typedef char                CHAR ,   *PCHAR ,  *LPCHAR ;
  23. typedef short               SHORT,   *PSHORT,  *LPSHORT;
  24. typedef int                 INT  ,   *PINT  ,  *LPINT  ;
  25. typedef long                LONG ,   *PLONG ,  *LPLONG ;
  26.  
  27. typedef unsigned char       UCHAR ,  *PUCHAR , *LPUCHAR ;
  28. typedef unsigned short      USHORT,  *PUSHORT, *LPUSHORT;
  29. typedef unsigned int        UINT  ,  *PUINT  , *LPUINT  ;
  30. typedef unsigned long       ULONG ,  *PULONG , *LPULONG ;
  31.  
  32. typedef void                VOID ,   *PVOID ,  *LPVOID ;
  33. typedef float               FLOAT,   *PFLOAT,  *LPFLOAT;
  34.  
  35. typedef UCHAR             BYTE,    *PBYTE,   *LPBYTE;
  36. typedef USHORT            WORD,    *PWORD,   *LPWORD;
  37. typedef ULONG             DWORD,   *PDWORD,  *LPDWORD;
  38.  
  39. #ifndef _BOOL_DEFINED
  40. #define _BOOL_DEFINED
  41. typedef INT               BOOL,    *PBOOL,   *LPBOOL;
  42. #endif
  43.  
  44. typedef const VOID       *PCVOID,  *LPCVOID;
  45. typedef CHAR             *PSZ   ,  *LPSZ;
  46. typedef const CHAR       *PCSZ  ,  *LPCSZ;
  47.  
  48. #ifndef FALSE
  49. #define FALSE   0
  50. #endif
  51. #ifndef TRUE
  52. #define TRUE    1
  53. #endif
  54.  
  55.  
  56. typedef UINT              WPARAM;
  57. typedef LONG              LPARAM;
  58. typedef LONG              LRESULT;
  59. typedef LONG              HRESULT;
  60.  
  61. typedef ULONG             HANDLE,  *PHANDLE,  *LPHANDLE,  *SPHANDLE;
  62.  
  63. #define _WCHAR_T_DEFINED
  64. typedef unsigned short wchar_t;
  65. typedef wchar_t WCHAR;
  66.  
  67. typedef WCHAR *PWCHAR;
  68. typedef WCHAR *LPWCH, *PWCH;
  69. typedef const    WCHAR  *LPCWCH, *PCWCH;
  70.  
  71. typedef WCHAR *NWPSTR;
  72. typedef WCHAR *LPWSTR, *PWSTR;
  73. typedef const    WCHAR   *LPCWSTR, *PCWSTR;
  74.  
  75. typedef CHAR  *LPCH,   *PCH;
  76.  
  77. typedef const CHAR *LPCCH,  *PCCH;
  78. typedef CHAR       *NPSTR;
  79. typedef CHAR       *LPSTR,  *PSTR;
  80. typedef const CHAR *LPCSTR, *PCSTR;
  81.  
  82. typedef CHAR     TCHAR, *PTCHAR;
  83. typedef UCHAR    TBYTE, *PTBYTE;
  84.  
  85. typedef LPSTR  LPTCH, PTCH;
  86. typedef LPSTR  PTSTR, LPTSTR;
  87. typedef LPCSTR LPCTSTR;
  88. #define __TEXT(quote) quote
  89.  
  90. #define TEXT(quote) __TEXT(quote)
  91.  
  92. #define _System _far _pascal
  93. #define CALLBACK    _System
  94. #define WINAPI      _System
  95. #define WINAPIV     _System
  96. #define APIENTRY    _System
  97. #define APIPRIVATE  _System
  98. #define PASCAL      _System
  99. #define EXPENTRY    _System
  100.  
  101. #ifndef NULL
  102.   #define NULL   0
  103. #endif
  104.  
  105. #define UNREFERENCED_PARAMETER(p)    (p)
  106.  
  107. #define CONST   const
  108.  
  109.  
  110. #ifdef __IBMC__
  111.    #pragma checkout( suspend )
  112.    #ifndef __CHKHDR__
  113.       #pragma checkout( resume )
  114.    #endif
  115.    #pragma checkout( resume )
  116. #endif
  117.  
  118. #endif /* _OS2WDEF_H */
  119.