-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOperationReport.h
More file actions
26 lines (18 loc) · 746 Bytes
/
OperationReport.h
File metadata and controls
26 lines (18 loc) · 746 Bytes
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
#pragma once
#include <regex>
#include "Operation.h"
class OperationReport final : public Operation
{
// 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);
};