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.

65 lines
1.9 KiB

  1. #define STRICT
  2. #define UNICODE
  3. #define _UNICODE
  4. #include "yvals.h"
  5. #pragma warning(disable:4127)
  6. #pragma warning(disable:4663)
  7. #pragma warning(disable:4100)
  8. #pragma warning(disable:4511)
  9. #pragma warning(disable:4512)
  10. #pragma warning(disable:4018) /* signed/unsigned mismatch */
  11. #pragma warning(disable:4786) /* long symbols */
  12. #if defined(_WIN64)
  13. #pragma warning(disable:4267) /* conversion from size_t to int */
  14. #endif
  15. #undef _MIN
  16. #undef _MAX
  17. #define _MIN min
  18. #define _MAX max
  19. #define min min
  20. #define max max
  21. #define NOMINMAX
  22. #define _cpp_min min
  23. #define _cpp_max max
  24. #include <string>
  25. #include <vector>
  26. #include <set>
  27. #include <algorithm>
  28. #include <map>
  29. #include <stdio.h>
  30. #include "windows.h"
  31. //
  32. // compatibility with VC6 headers
  33. //
  34. #if !defined(_WIN64)
  35. #if !defined(_W64)
  36. #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
  37. #define _W64 __w64
  38. #else
  39. #define _W64
  40. #endif
  41. #endif
  42. typedef _W64 long LONG_PTR, *PLONG_PTR;
  43. typedef _W64 unsigned long ULONG_PTR, *PULONG_PTR;
  44. #endif
  45. #define IS_INTRESOURCE(_r) (((ULONG_PTR)(_r) >> 16) == 0)
  46. #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
  47. #define RT_MANIFEST MAKEINTRESOURCE(24)
  48. #define BITS_OF(x) (sizeof(x)*8)
  49. #define ASSERT_NTC(x) ASSERT(x)
  50. #define VERIFY_NTC(x) (x)
  51. #define FN_TRACE_WIN32(x) /* nothing */
  52. #define FN_TRACE_HR(x) /* nothing */
  53. #define IFW32FALSE_EXIT(x) do { if (!(x)) goto Exit; } while(0)
  54. #define TRACE_WIN32_FAILURE_ORIGINATION(x) \
  55. (OutputDebugStringA(#x "\n"))
  56. void ResourceToolAssertFailed(const char* Expression, const char* File, unsigned long Line);
  57. void ResourceToolInternalErrorCheckFailed(const char* Expression, const char* File, unsigned long Line);
  58. #define ASSERT(x) ((!!(x)) || (ResourceToolAssertFailed(#x, SourceFile, __LINE__),false))
  59. #define INTERNAL_ERROR_CHECK(x) ((!!(x)) || (ResourceToolInternalErrorCheckFailed(#x, SourceFile, __LINE__),false))