home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / OS2WDEF.H < prev    next >
C/C++ Source or Header  |  1999-03-15  |  3KB  |  123 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.  
  14. #if __IBMC__ || __IBMCPP__
  15.    #pragma info( none )
  16.    #ifndef __CHKHDR__
  17.       #pragma info( none )
  18.    #endif
  19.    #pragma info( restore )
  20. #endif
  21.  
  22.  
  23. typedef char                CHAR ,   *PCHAR ,  *LPCHAR ;
  24. typedef short               SHORT,   *PSHORT,  *LPSHORT;
  25. typedef int                 INT  ,   *PINT  ,  *LPINT  ;
  26. typedef long                LONG ,   *PLONG ,  *LPLONG ;
  27.  
  28. typedef unsigned char       UCHAR ,  *PUCHAR , *LPUCHAR ;
  29. typedef unsigned short      USHORT,  *PUSHORT, *LPUSHORT;
  30. typedef unsigned int        UINT  ,  *PUINT  , *LPUINT  ;
  31. typedef unsigned long       ULONG ,  *PULONG , *LPULONG ;
  32.  
  33. typedef void                VOID ,   *PVOID ,  *LPVOID ;
  34. typedef float               FLOAT,   *PFLOAT,  *LPFLOAT;
  35.  
  36. typedef UCHAR             BYTE,    *PBYTE,   *LPBYTE;
  37. typedef USHORT            WORD,    *PWORD,   *LPWORD;
  38. typedef ULONG             DWORD,   *PDWORD,  *LPDWORD;
  39.  
  40. #ifndef _BOOL_DEFINED
  41. #define _BOOL_DEFINED
  42. typedef INT               BOOL,    *PBOOL,   *LPBOOL;
  43. #endif
  44.  
  45. typedef const VOID       *PCVOID,  *LPCVOID;
  46. typedef CHAR             *PSZ   ,  *LPSZ;
  47. typedef const CHAR       *PCSZ  ,  *LPCSZ;
  48.  
  49. #ifndef FALSE
  50. #define FALSE   0
  51. #endif
  52. #ifndef TRUE
  53. #define TRUE    1
  54. #endif
  55.  
  56.  
  57. typedef UINT              WPARAM;
  58. typedef LONG              LPARAM;
  59. typedef LONG              LRESULT;
  60. typedef LONG              HRESULT;
  61.  
  62. typedef ULONG             HANDLE,  *PHANDLE,  *LPHANDLE,  *SPHANDLE;
  63.  
  64. #ifndef _WCHAR_T_DEFINED
  65.  #define _WCHAR_T_DEFINED
  66. #endif
  67. #ifndef __wchar_t
  68.  #define __wchar_t
  69.  typedef unsigned short wchar_t;
  70. #endif
  71. typedef wchar_t WCHAR;
  72.  
  73. typedef WCHAR *PWCHAR;
  74. typedef WCHAR *LPWCH, *PWCH;
  75. typedef const    WCHAR  *LPCWCH, *PCWCH;
  76.  
  77. typedef WCHAR *NWPSTR;
  78. typedef WCHAR *LPWSTR, *PWSTR;
  79. typedef const    WCHAR   *LPCWSTR, *PCWSTR;
  80.  
  81. typedef CHAR  *LPCH,   *PCH;
  82.  
  83. typedef const CHAR *LPCCH,  *PCCH;
  84. typedef CHAR       *NPSTR;
  85. typedef CHAR       *LPSTR,  *PSTR;
  86. typedef const CHAR *LPCSTR, *PCSTR;
  87.  
  88. typedef CHAR     TCHAR, *PTCHAR;
  89. typedef UCHAR    TBYTE, *PTBYTE;
  90.  
  91. typedef LPSTR  LPTCH, PTCH;
  92. typedef LPSTR  PTSTR, LPTSTR;
  93. typedef LPCSTR LPCTSTR;
  94. #define __TEXT(quote) quote
  95.  
  96. #define TEXT(quote) __TEXT(quote)
  97.  
  98. #define CALLBACK    _System
  99. #define WINAPI      _System
  100. #define WINAPIV     _System
  101. #define APIENTRY    _System
  102. #define APIPRIVATE  _System
  103. #define PASCAL      _System
  104. #define EXPENTRY    _System
  105.  
  106. #ifndef NULL
  107.   #define NULL   0
  108. #endif
  109.  
  110. #define UNREFERENCED_PARAMETER(p)    (p)
  111.  
  112. #define CONST   const
  113.  
  114. #if __IBMC__ || __IBMCPP__
  115.    #pragma info( none )
  116.    #ifndef __CHKHDR__
  117.       #pragma info( restore )
  118.    #endif
  119.    #pragma info( restore )
  120. #endif
  121.  
  122. #endif /* _OS2WDEF_H */
  123.