-
Notifications
You must be signed in to change notification settings - Fork 435
/
pe_sieve_report.h
48 lines (38 loc) · 1000 Bytes
/
pe_sieve_report.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @file
* @brief The final report produced by PE-sieve.
*/
#pragma once
#include <windows.h>
#include <iostream>
#include "scanners/scan_report.h"
#include "postprocessors/dump_report.h"
namespace pesieve {
class ErrorReport
{
public:
ErrorReport(DWORD _pid, const std::string &_message)
: pid(_pid), message(_message)
{
}
const DWORD pid;
const std::string message;
};
//! The final report about the actions performed on the process: scanning and dumping
class ReportEx {
public:
ReportEx() :
scan_report(nullptr), dump_report(nullptr), error_report(nullptr)
{
}
~ReportEx()
{
delete scan_report;
delete dump_report;
delete error_report;
}
ProcessScanReport* scan_report; ///< the report aggregating the results of the performed scans
ProcessDumpReport* dump_report; ///< the report aggregating the results of the performed dumps
ErrorReport* error_report; ///< the report detailing on possible errors that prevented the scan
};
};