Source code of Windows XP (NT5)
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.

55 lines
1.8 KiB

  1. #define BUILDING_PATCHAPI 1
  2. #pragma warning( disable: 4001 ) // single line comments
  3. #pragma warning( disable: 4115 ) // type definition in parentheses
  4. #pragma warning( disable: 4200 ) // zero-sized array in struct/union
  5. #pragma warning( disable: 4201 ) // nameless struct/union
  6. #pragma warning( disable: 4204 ) // non-constant initializer
  7. #pragma warning( disable: 4206 ) // empty file after preprocessing
  8. #pragma warning( disable: 4209 ) // benign redefinition
  9. #pragma warning( disable: 4213 ) // cast on l-value
  10. #pragma warning( disable: 4214 ) // bit field other than int
  11. #pragma warning( disable: 4514 ) // unreferenced inline function
  12. #ifndef WIN32_LEAN_AND_MEAN
  13. #define WIN32_LEAN_AND_MEAN 1
  14. #endif
  15. #include <windows.h>
  16. #include <wincrypt.h>
  17. #pragma warning( disable: 4201 )
  18. #include <imagehlp.h>
  19. #include <stdlib.h>
  20. //
  21. // For some reason, windows.h screws up the disabled warnings, so we have
  22. // to disable them again after including it.
  23. //
  24. #pragma warning( disable: 4001 ) // single line comments
  25. #pragma warning( disable: 4115 ) // type definition in parentheses
  26. #pragma warning( disable: 4200 ) // zero-sized array in struct/union
  27. #pragma warning( disable: 4201 ) // nameless struct/union
  28. #pragma warning( disable: 4204 ) // non-constant initializer
  29. #pragma warning( disable: 4206 ) // empty file after preprocessing
  30. #pragma warning( disable: 4209 ) // benign redefinition
  31. #pragma warning( disable: 4213 ) // cast on l-value
  32. #pragma warning( disable: 4214 ) // bit field other than int
  33. #pragma warning( disable: 4514 ) // unreferenced inline function
  34. #include "md5.h"
  35. #include "misc.h"
  36. #include "redblack.h"
  37. #include "patchapi.h"
  38. #include "patchprv.h"
  39. #include "patchlzx.h"
  40. #include "pestuff.h"
  41. typedef void t_encoder_context;
  42. typedef void t_decoder_context;
  43. #include <encapi.h>
  44. #include <decapi.h>