-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
OperationReport.h
27 lines (19 loc) · 755 Bytes
/
OperationReport.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
#pragma once
#include <regex>
#include "Operation.h"
class OperationReport final : public Operation
{
private:
// statics used by command registration utility
static std::wstring GetCommand() { return L"Report"; }
static ClassFactory<OperationReport> RegisteredFactory;
// operation specific
HANDLE hReportFile = INVALID_HANDLE_VALUE;
std::wregex tRegex;
public:
// overrides
SidActionResult DetermineSid(const WCHAR * sSdPart, ObjectEntry & tObjectEntry, PSID tCurrentSid, PSID & tResultantSid) override;
bool ProcessAclAction(const WCHAR * sSdPart, ObjectEntry & tObjectEntry, PACL & tCurrentAcl, bool & bAclReplacement) override;
// constructors
OperationReport(std::queue<std::wstring> & oArgList, const std::wstring & sCommand);
};