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.

112 lines
2.2 KiB

  1. #ifndef BASETYPES
  2. #define BASETYPES
  3. typedef long LONG;
  4. typedef unsigned long ULONG;
  5. typedef ULONG *PULONG;
  6. typedef unsigned short USHORT;
  7. typedef USHORT *PUSHORT;
  8. typedef unsigned char UCHAR;
  9. typedef UCHAR *PUCHAR;
  10. typedef char *PCHAR;
  11. // typedef void VOID;
  12. #endif /* !BASETYPES */
  13. #define MAX_PATH 260
  14. #ifndef NULL
  15. #ifdef __cplusplus
  16. #define NULL 0
  17. #else
  18. #define NULL ((void *)0)
  19. #endif
  20. #endif
  21. #ifndef FALSE
  22. #define FALSE 0
  23. #endif
  24. #ifndef TRUE
  25. #define TRUE 1
  26. #endif
  27. #ifndef IN
  28. #define IN
  29. #endif
  30. #ifndef OUT
  31. #define OUT
  32. #endif
  33. #ifndef OPTIONAL
  34. #define OPTIONAL
  35. #endif
  36. #undef far
  37. #undef near
  38. #undef pascal
  39. #define far
  40. #define near
  41. #if (_MSC_VER >= 800)
  42. #define pascal __stdcall
  43. #else
  44. #define pascal
  45. #endif
  46. #ifdef DOSWIN32
  47. #define cdecl _cdecl
  48. #ifndef CDECL
  49. #define CDECL _cdecl
  50. #endif
  51. #else
  52. #define cdecl
  53. #ifndef CDECL
  54. #define CDECL
  55. #endif
  56. #endif
  57. #if (_MSC_VER >= 800)
  58. #define CALLBACK __stdcall
  59. #define WINAPI __stdcall
  60. #define WINAPIV __cdecl
  61. #define APIENTRY WINAPI
  62. #define APIPRIVATE __stdcall
  63. // #define PASCAL __stdcall
  64. #else
  65. #define CALLBACK
  66. #define WINAPI
  67. #define WINAPIV
  68. #define APIENTRY WINAPI
  69. #define APIPRIVATE
  70. #define PASCAL pascal
  71. #endif
  72. #define NEAR near
  73. #ifndef CONST
  74. #define CONST const
  75. #endif
  76. typedef unsigned long DWORD;
  77. typedef int BOOL;
  78. typedef unsigned char BYTE;
  79. typedef unsigned short WORD;
  80. typedef float FLOAT;
  81. typedef FLOAT *PFLOAT;
  82. typedef BOOL near *PBOOL;
  83. typedef BOOL far *LPBOOL;
  84. typedef BYTE near *PBYTE;
  85. typedef BYTE far *LPBYTE;
  86. typedef int near *PINT;
  87. typedef int far *LPINT;
  88. typedef WORD near *PWORD;
  89. typedef WORD far *LPWORD;
  90. typedef long far *LPLONG;
  91. typedef DWORD near *PDWORD;
  92. typedef DWORD far *LPDWORD;
  93. typedef void far *LPVOID, *PVOID;
  94. typedef CONST void far *LPCVOID;
  95. typedef char far *LPSZ, *LPSTR, *LPCHAR;
  96. typedef int INT;
  97. typedef unsigned int UINT;
  98. typedef unsigned int *PUINT;