Skip to content

Commit 871c524

Browse files
committed
CreateGroups additions
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
1 parent 64fc1bc commit 871c524

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2787
-173
lines changed

src/ext/Firewall/ca/CustomMsiErrors.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@
8787
#define msierrUSRFailedUserCreateExists 26404
8888
#define msierrUSRFailedGrantLogonAsService 26405
8989

90+
#define msierrGRPFailedGroupCreate 26421
91+
#define msierrGRPFailedGroupGroupAdd 26422
92+
#define msierrGRPFailedGroupCreateExists 26423
93+
9094
#define msierrDependencyMissingDependencies 26451
9195
#define msierrDependencyHasDependents 26452
9296

src/ext/Iis/ca/sca.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,15 @@ enum SCAU_ATTRIBUTES
123123
SCAU_NON_VITAL = 0x00000400,
124124
SCAU_REMOVE_COMMENT = 0x00000800,
125125
};
126+
127+
// group creation attributes definitions
128+
enum SCAG_ATTRIBUTES
129+
{
130+
SCAG_FAIL_IF_EXISTS = 0x00000001,
131+
SCAG_UPDATE_IF_EXISTS = 0x00000002,
132+
133+
SCAG_DONT_REMOVE_ON_UNINSTALL = 0x00000004,
134+
SCAG_DONT_CREATE_GROUP = 0x00000008,
135+
SCAG_NON_VITAL = 0x00000010,
136+
SCAG_REMOVE_COMMENT = 0x00000020,
137+
};

src/ext/Util/ca/CustomMsiErrors.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@
2929
#define msierrUSRFailedUserCreateExists 26404
3030
#define msierrUSRFailedGrantLogonAsService 26405
3131

32-
//Last available is 26450
32+
#define msierrGRPFailedGroupCreate 26421
33+
#define msierrGRPFailedGroupGroupAdd 26422
34+
#define msierrGRPFailedGroupCreateExists 26423
35+
36+
//Last available is 26450

src/ext/Util/ca/sca.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,15 @@ enum SCAU_ATTRIBUTES
1818
SCAU_NON_VITAL = 0x00000400,
1919
SCAU_REMOVE_COMMENT = 0x00000800,
2020
};
21+
22+
// group creation attributes definitions
23+
enum SCAG_ATTRIBUTES
24+
{
25+
SCAG_FAIL_IF_EXISTS = 0x00000001,
26+
SCAG_UPDATE_IF_EXISTS = 0x00000002,
27+
28+
SCAG_DONT_REMOVE_ON_UNINSTALL = 0x00000004,
29+
SCAG_DONT_CREATE_GROUP = 0x00000008,
30+
SCAG_NON_VITAL = 0x00000010,
31+
SCAG_REMOVE_COMMENT = 0x00000020,
32+
};

src/ext/Util/ca/scacost.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const UINT COST_SMB_CREATESMB = 10000;
99
const UINT COST_SMB_DROPSMB = 5000;
1010
const UINT COST_USER_ADD = 10000;
1111
const UINT COST_USER_DELETE = 10000;
12+
const UINT COST_GROUP_ADD = 10000;
13+
const UINT COST_GROUP_DELETE = 10000;
1214

1315
const UINT COST_PERFMONMANIFEST_REGISTER = 1000;
1416
const UINT COST_PERFMONMANIFEST_UNREGISTER = 1000;

0 commit comments

Comments
 (0)