-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOperationGrantDenyPerms.h
More file actions
26 lines (19 loc) · 764 Bytes
/
Copy pathOperationGrantDenyPerms.h
File metadata and controls
26 lines (19 loc) · 764 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 "Operation.h"
class OperationGrantDenyPerms final : public Operation
{
// statics used by command registration utility
static std::wstring GetCommandAdd() { return L"GrantPerms"; }
static std::wstring GetCommandDeny() { return L"DenyPerms"; }
static ClassFactory<OperationGrantDenyPerms> RegisteredFactoryGrant;
static ClassFactory<OperationGrantDenyPerms> RegisteredFactoryDeny;
// operation specific
EXPLICIT_ACCESS tEa;
std::wstring sIdentity;
std::wstring sPerms;
public:
// overrides
bool ProcessAclAction(const WCHAR* sSdPart, ObjectEntry& tObjectEntry, PACL& tCurrentAcl, bool& bAclReplacement) override;
// constructors
OperationGrantDenyPerms(std::queue<std::wstring>& oArgList, const std::wstring & sCommand);
};