Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
7.9 KiB

  1. /****************************************************************************/
  2. /* */
  3. /* wdcgctyp.h */
  4. /* */
  5. /* DC-Groupware complex types - Windows specific header. */
  6. /* */
  7. /* Copyright(c) Microsoft 1997 */
  8. /* */
  9. /****************************************************************************/
  10. /* Changes: */
  11. /* */
  12. /* $Log: Y:/logs/h/dcl/wdcgctyp.h_v $ */
  13. //
  14. // Rev 1.3 15 Sep 1997 18:27:18 AK
  15. // SFR1416: Move SD_BOTH definition
  16. //
  17. // Rev 1.2 26 Jun 1997 09:54:04 KH
  18. // Win16Port: Move some common definitions from n/d files
  19. //
  20. // Rev 1.1 19 Jun 1997 14:33:02 ENH
  21. // Win16Port: Make compatible with 16 bit build
  22. /* */
  23. /****************************************************************************/
  24. #ifndef _H_WDCGCTYP
  25. #define _H_WDCGCTYP
  26. /****************************************************************************/
  27. /* */
  28. /* INCLUDES */
  29. /* */
  30. /****************************************************************************/
  31. /****************************************************************************/
  32. /* Include appropriate header files. */
  33. /****************************************************************************/
  34. #ifndef OS_WINCE
  35. #include <sys\timeb.h>
  36. #endif // OS_WINCE
  37. /****************************************************************************/
  38. /* Determine our target Windows platform and include the appropriate header */
  39. /* file. */
  40. /* Currently we support: */
  41. /* */
  42. /* Windows 3.1 : ddcgctyp.h */
  43. /* Windows NT : ndcgctyp.h */
  44. /* */
  45. /****************************************************************************/
  46. #ifdef OS_WIN16
  47. #include <ddcgctyp.h>
  48. #elif defined( OS_WIN32 )
  49. #include <ndcgctyp.h>
  50. #endif
  51. /****************************************************************************/
  52. /* */
  53. /* TYPES */
  54. /* */
  55. /****************************************************************************/
  56. typedef HPALETTE DCPALID;
  57. typedef HCURSOR DCCURSORID;
  58. typedef HTASK SYSAPPID;
  59. typedef HWND SYSWINID;
  60. typedef HFILE DCHFILE;
  61. typedef RECT SYSRECT;
  62. typedef PALETTEENTRY DCPALETTEENTRY;
  63. typedef DCPALETTEENTRY DCPTR PDCPALETTEENTRY;
  64. /****************************************************************************/
  65. /* A few useful drawing and bitmap types. */
  66. /****************************************************************************/
  67. typedef HBITMAP SYSBITMAP;
  68. typedef BITMAPINFOHEADER SYSBMIHEADER;
  69. typedef BITMAPINFO SYSBMI;
  70. typedef RGBTRIPLE DCPTR PRGBTRIPLE;
  71. typedef RGBQUAD DCPTR PRGBQUAD;
  72. /****************************************************************************/
  73. /* Fields for Bmp info structure. */
  74. /****************************************************************************/
  75. #define BMISIZE biSize
  76. #define BMIWIDTH biWidth
  77. #define BMIHEIGHT biHeight
  78. #define BMIPLANES biPlanes
  79. #define BMIBITCOUNT biBitCount
  80. #define BMICOMPRESSION biCompression
  81. #define BMISIZEIMAGE biSizeImage
  82. #define BMIXPELSPERMETER biXPelsPerMeter
  83. #define BMIYPELSPERMETER biYPelsPerMeter
  84. #define BMICLRUSED biClrUsed
  85. #define BMICLRIMPORTANT biClrImportant
  86. /****************************************************************************/
  87. /* Compression options. */
  88. /****************************************************************************/
  89. #define BMCRGB BI_RGB
  90. #define BMCRLE8 BI_RLE8
  91. #define BMCRLE4 BI_RLE4
  92. typedef POINT SYSPOINT;
  93. /****************************************************************************/
  94. /* Fields for sysrect structure. */
  95. /****************************************************************************/
  96. #define SRXMIN left
  97. #define SRXMAX right
  98. #define SRYMIN top
  99. #define SRYMAX bottom
  100. /****************************************************************************/
  101. /* For fonts... */
  102. /****************************************************************************/
  103. typedef TEXTMETRIC DCTEXTMETRIC;
  104. typedef PTEXTMETRIC PDCTEXTMETRIC;
  105. typedef HFONT DCHFONT;
  106. /****************************************************************************/
  107. /* Time typedefs. */
  108. /****************************************************************************/
  109. typedef struct _timeb DC_TIMEB;
  110. /****************************************************************************/
  111. /* Mutex handle */
  112. /****************************************************************************/
  113. typedef HANDLE DCMUTEX;
  114. /****************************************************************************/
  115. /* Window enumeration handle */
  116. /****************************************************************************/
  117. typedef DCUINT32 DCENUMWNDHANDLE;
  118. typedef DCENUMWNDHANDLE DCPTR PDCENUMWNDHANDLE;
  119. /****************************************************************************/
  120. /* Macros for Window and Dialog procedures. */
  121. /****************************************************************************/
  122. #define DCRESULT LRESULT
  123. #define DCWNDPROC LRESULT CALLBACK
  124. #define DCDLGPROC BOOL CALLBACK
  125. /****************************************************************************/
  126. /* The following constants are available in WinSock 1.1 and 2.0 but not */
  127. /* given names in WinSock 1.1. */
  128. /****************************************************************************/
  129. #define SD_RECEIVE 0x00
  130. #define SD_SEND 0x01
  131. #define SD_BOTH 0x02
  132. #endif /* _H_WDCGCTYP */