Windows NT 4.0 source code leak
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.

75 lines
1.7 KiB

4 years ago
  1. #if !defined(_FILE_STDAFX_H) && !defined(HC_H)
  2. #if !defined(_WINDOWS_)
  3. #define WINVER 0x0400
  4. #define NOATOM
  5. #define NOCLIPBOARD
  6. #define NOCOMM
  7. #define NODEFERWINDOWPOS
  8. #define NODRIVERS
  9. #define NOENHMETAFILE
  10. #define NOEXTDEVMODEPROPSHEET
  11. #define NOGDICAPMASKS
  12. #define NOICONS
  13. #define NOKANJI
  14. #define NOKEYSTATES
  15. #define NOLOGERROR
  16. #define NOMENUS
  17. #define NOMETAFILE
  18. #define NOPROFILER
  19. #define NOSCALABLEFONT
  20. #define NOSCROLL
  21. #define NOSERVICE
  22. #define NOSOUND
  23. #define NOSYSCOMMANDS
  24. #define NOVIRTUALKEYCODES
  25. #define NOWH
  26. #define NOWINDOWSX
  27. #define NOWINOFFSETS
  28. #define NOMCX
  29. #define NOIME
  30. // #define WIN32_LEAN_AND_MEAN
  31. #define STRICT
  32. #include <windows.h>
  33. #endif // _WINDOWS_
  34. #ifndef STDCALL
  35. #define STDCALL __stdcall
  36. #endif
  37. #ifndef FASTCALL
  38. #define FASTCALL __fastcall
  39. #endif
  40. #ifndef LCMEM_H
  41. #include "lcmem.h"
  42. #endif
  43. #ifndef ASSERT
  44. #if defined(DEBUG) || defined(_DEBUG)
  45. #define VERIFY ASSERT
  46. #define ASSERT(exp) { if (!(exp)) { DebugBreak(); AssertErrorReport(#exp, __LINE__, THIS_FILE); } }
  47. #define Ensure( x1, x2 ) VERIFY((x1) == (x2))
  48. #define DieHorribly() { DebugBreak(); ASSERT(FALSE); \
  49. RaiseException(EXCEPT_DIE_HORRIBLY, EXCEPTION_NONCONTINUABLE, 0, NULL); }
  50. #define DBWIN(psz) { OutputDebugString(psz); OutputDebugString("\n"); }
  51. #else
  52. #define VERIFY(exp) ((void)(exp))
  53. #define ASSERT(exp)
  54. #define Ensure(x1, x2) ((void)(x1))
  55. #define DieHorribly() { RaiseException(EXCEPT_DIE_HORRIBLY, EXCEPTION_NONCONTINUABLE, 0, NULL); }
  56. #define DBWIN(psz)
  57. #endif // _DEBUG
  58. #endif // ASSERT
  59. // These two functions must be supplied by the application
  60. void STDCALL OOM(void);
  61. void STDCALL AssertErrorReport(PCSTR pszExpression, UINT line, PCSTR pszFile);
  62. #endif // everything already included via hcw\stdafx.h or hcrtf\hc.h