home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Headers / Wintypes.h < prev   
Encoding:
C/C++ Source or Header  |  1996-04-22  |  2.6 KB  |  99 lines  |  [TEXT/????]

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * wintypes.h -  Windows compatible types and definitions                      *
  4. *                                                                             *
  5. *               OLE Version 2.0                                               *
  6. *                                                                             *
  7. *               Copyright (c) 1992-1996, Microsoft Corp. All rights reserved. *
  8. *                                                                             *
  9. \*****************************************************************************/
  10.  
  11. #ifndef _WINTYPES_H_
  12. #define _WINTYPES_H_
  13.  
  14. #ifndef NULL
  15. #ifdef __cplusplus
  16. #define NULL    0
  17. #else
  18. #define NULL    ((void *)0)
  19. #endif
  20. #endif
  21.  
  22. #ifndef FALSE
  23. #define FALSE               0
  24. #endif
  25.  
  26. #ifndef TRUE
  27. #define TRUE                1
  28. #endif
  29.  
  30. /*
  31.  * BASETYPES is defined in ntdef.h if these types are already defined
  32.  */
  33.  
  34. #ifndef BASETYPES
  35. #define BASETYPES
  36. typedef unsigned long ULONG;
  37. typedef ULONG *PULONG;
  38. typedef unsigned short USHORT;
  39. typedef USHORT *PUSHORT;
  40. typedef unsigned char UCHAR;
  41. typedef UCHAR *PUCHAR;
  42. typedef char *PSZ;
  43. #endif  /* !BASETYPES */
  44.  
  45. /*
  46.  * _WINDEF_ is defined in windef.h if these types are already defined
  47.  */
  48.  
  49. #ifndef _WINDEF_
  50.  
  51. typedef long                LONG;
  52. typedef unsigned long       DWORD;
  53. typedef int                 BOOL;
  54. typedef unsigned char       BYTE;
  55. typedef unsigned short      WORD;
  56. typedef BOOL                *LPBOOL;
  57. typedef BYTE                *LPBYTE;
  58. typedef int                 *LPINT;
  59. typedef WORD                *LPWORD;
  60. typedef long                *LPLONG;
  61. typedef DWORD               *LPDWORD;
  62. typedef void                *LPVOID;
  63. typedef const void          *LPCVOID;
  64.  
  65. typedef int                 INT;
  66. typedef unsigned int        UINT;
  67. typedef unsigned int        *PUINT;
  68.  
  69. /* Types use for passing & returning polymorphic values */
  70. typedef UINT WPARAM;
  71. typedef LONG LPARAM;
  72. typedef LONG LRESULT;
  73.  
  74. #ifdef STRICT
  75. typedef void *HANDLE;
  76. #define DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
  77. #else
  78. typedef LPVOID HANDLE;
  79. #define DECLARE_HANDLE(name) typedef HANDLE name
  80. #endif
  81.  
  82. #endif /* _WINDEF */
  83.  
  84. /* Opaque handle types when interoperating with WLM-based components */
  85. DECLARE_HANDLE(HWND);
  86. DECLARE_HANDLE(HMENU);
  87. DECLARE_HANDLE(HOLEMENU);
  88. DECLARE_HANDLE(HDC);
  89. DECLARE_HANDLE(HRGN);
  90. DECLARE_HANDLE(HACCEL);
  91. DECLARE_HANDLE(HBITMAP);
  92. DECLARE_HANDLE(HMETAFILEPICT);
  93. DECLARE_HANDLE(HENHMETAFILE);
  94. DECLARE_HANDLE(HGLOBAL);
  95.  
  96. typedef LPVOID              LPMSG;
  97.  
  98. #endif /* _WINTYPES_H_ */
  99.