Skip to content

Commit ab0ac7a

Browse files
committed
[NOBIN] Added comments for Doxygen
1 parent 36f6d41 commit ab0ac7a

File tree

6 files changed

+30
-19
lines changed

6 files changed

+30
-19
lines changed

dll_main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* @file
3+
* @brief The main file of PE-sieve built as a DLL
4+
*/
5+
16
#include <windows.h>
27
#include <string>
38
#include <iostream>

include/pe_sieve_api.h

+4-9
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,11 @@
2424
extern "C" {
2525
#endif
2626

27-
/**
28-
PE-sieve version in a DWORD form.
29-
*/
27+
28+
//! PE-sieve version in a DWORD form.
3029
extern const DWORD PESIEVE_API PESieve_version;
3130

32-
/**
33-
Shows a MessageBox with the informations about PE-sieve.
34-
*/
31+
//! Shows a MessageBox with the informations about PE-sieve.
3532
void PESIEVE_API_FUNC PESieve_help(void);
3633

3734
#ifdef __cplusplus
@@ -42,9 +39,7 @@ typedef t_report PEsieve_report;
4239
typedef t_params PEsieve_params;
4340
#endif
4441

45-
/**
46-
Performs a PE-sieve scan with a supplied set of parameters (defined as a structure t_params). Returns a summary of the scan in a variable of type t_report.
47-
*/
42+
//! Performs a PE-sieve scan with a supplied set of parameters (defined as a structure t_params). Returns a summary of the scan in a variable of type t_report.
4843
PEsieve_report PESIEVE_API_FUNC PESieve_scan(const PEsieve_params args);
4944

5045
#ifdef __cplusplus

main.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// Scans for modified modules within the process of a given PID
2-
// author: hasherezade ([email protected])
1+
/**
2+
* @file
3+
* @brief The main file of PE-sieve built as an EXE
4+
*/
35

46
#include <windows.h>
57
#include <psapi.h>

pe_sieve.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Scans the process with a given PID
2-
// author: hasherezade ([email protected])
3-
41
#include "pe_sieve.h"
52
#include <peconv.h>
63

pe_sieve.h

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* @file
3+
* @brief The root of the PE-sieve scanner.
4+
*/
5+
16
#pragma once
27

38
#include <windows.h>
@@ -14,6 +19,7 @@
1419

1520
namespace pesieve {
1621

22+
//! The final report about the actions performed on the process: scanning and dumping
1723
class ReportEx {
1824
public:
1925
ReportEx() :
@@ -31,7 +37,13 @@ namespace pesieve {
3137
ProcessDumpReport* dump_report;
3238
};
3339

40+
//! The string with the basic information about the scanner.
3441
std::string info();
3542

43+
//! The main action performed by PE-sieve: scanning the process and dumping the detected material.
44+
/**
45+
\param args : the configuration of the scan (defined as t_params)
46+
\return A pointer to the generated report (of type ReportEx)
47+
*/
3648
ReportEx* scan_and_dump(IN const pesieve::t_params args);
3749
};

scanners/mempage_data.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ namespace pesieve {
3333
return peconv::validate_ptr(this->loadedData, this->loadedSize, field_bgn, field_size);
3434
}
3535

36-
ULONGLONG start_va; // VA that was requested. May not be beginning of the region.
37-
ULONGLONG stop_va; // maximum VA that will be read
38-
DWORD protection;
36+
ULONGLONG start_va; ///< VA that was requested. May not be beginning of the region.
37+
ULONGLONG stop_va; ///< the VA at which the read will stop
38+
DWORD protection; ///< page protection
3939
DWORD initial_protect;
4040
bool is_private;
4141
DWORD mapping_type;
@@ -47,8 +47,8 @@ namespace pesieve {
4747
ULONGLONG region_start;
4848
ULONGLONG region_end;
4949

50-
std::string mapped_name; //if the region is mapped from a file
51-
std::string module_name; //if the region is on the list of loaded PEs
50+
std::string mapped_name; ///< if the region is mapped from a file, stores its file name
51+
std::string module_name; ///< if the region is on the list of loaded PEs, stores its module name
5252

5353
bool load()
5454
{

0 commit comments

Comments
 (0)