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
17 lines
557 B
//
|
|
// Return values
|
|
//
|
|
#define PEWHACK_SUCCESS 0x0000
|
|
#define PEWHACK_BAD_COMMANDLINE 0x0001
|
|
#define PEWHACK_CREATEFILE_FAILED 0x0002
|
|
#define PEWHACK_CREATEMAP_FAILED 0x0003
|
|
#define PEWHACK_MAPVIEW_FAILED 0x0004
|
|
#define PEWHACK_BAD_DOS_SIG 0x0005
|
|
#define PEWHACK_BAD_PE_SIG 0x0006
|
|
#define PEWHACK_BAD_ARCHITECTURE 0x0007
|
|
|
|
//
|
|
// Verifies an image is a PE binary and, if so, corrupts it to be
|
|
// non-executable but still useful for debugging memory dumps.
|
|
//
|
|
DWORD CorruptFile(LPCTSTR Filename);
|