forked from jessek/hashdeep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwinpe.h
26 lines (22 loc) · 820 Bytes
/
winpe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// MD5DEEP - winpe.h
//
// By Jesse Kornblum
//
// This is a work of the US Government. In accordance with 17 USC 105,
// copyright protection is not available for any work of the US Government.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// $Id$
//
#include "main.h"
#define PETEST_BUFFER_SIZE 8192
/// Returns true if 'fn' ends with an extension which is normally executable on Microsoft Windows
bool has_executable_extension(const tstring &fn);
/// Returns true if the data in buffer is the start of a PE executable
///
/// @param buffer The buffer to test
/// @param size Size of the buffer in bytes
bool is_pe_file(const unsigned char * buffer, size_t size);