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.

17 lines
557 B

  1. //
  2. // Return values
  3. //
  4. #define PEWHACK_SUCCESS 0x0000
  5. #define PEWHACK_BAD_COMMANDLINE 0x0001
  6. #define PEWHACK_CREATEFILE_FAILED 0x0002
  7. #define PEWHACK_CREATEMAP_FAILED 0x0003
  8. #define PEWHACK_MAPVIEW_FAILED 0x0004
  9. #define PEWHACK_BAD_DOS_SIG 0x0005
  10. #define PEWHACK_BAD_PE_SIG 0x0006
  11. #define PEWHACK_BAD_ARCHITECTURE 0x0007
  12. //
  13. // Verifies an image is a PE binary and, if so, corrupts it to be
  14. // non-executable but still useful for debugging memory dumps.
  15. //
  16. DWORD CorruptFile(LPCTSTR Filename);