Skip to content

Commit

Permalink
CreateGroups additions
Browse files Browse the repository at this point in the history
Signed-off-by: Bevan Weiss <[email protected]>
  • Loading branch information
bevanweiss committed Jun 30, 2024
1 parent 96b546f commit c2a5c0e
Show file tree
Hide file tree
Showing 60 changed files with 2,833 additions and 157 deletions.
4 changes: 4 additions & 0 deletions src/ext/Firewall/ca/CustomMsiErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
#define msierrUSRFailedUserCreateExists 26404
#define msierrUSRFailedGrantLogonAsService 26405

#define msierrGRPFailedGroupCreate 26421
#define msierrGRPFailedGroupGroupAdd 26422
#define msierrGRPFailedGroupCreateExists 26423

#define msierrDependencyMissingDependencies 26451
#define msierrDependencyHasDependents 26452

Expand Down
12 changes: 12 additions & 0 deletions src/ext/Iis/ca/sca.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,15 @@ enum SCAU_ATTRIBUTES
SCAU_NON_VITAL = 0x00000400,
SCAU_REMOVE_COMMENT = 0x00000800,
};

// group creation attributes definitions
enum SCAG_ATTRIBUTES
{
SCAG_FAIL_IF_EXISTS = 0x00000001,
SCAG_UPDATE_IF_EXISTS = 0x00000002,

SCAG_DONT_REMOVE_ON_UNINSTALL = 0x00000004,
SCAG_DONT_CREATE_GROUP = 0x00000008,
SCAG_NON_VITAL = 0x00000010,
SCAG_REMOVE_COMMENT = 0x00000020,
};
6 changes: 5 additions & 1 deletion src/ext/Util/ca/CustomMsiErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@
#define msierrUSRFailedUserCreateExists 26404
#define msierrUSRFailedGrantLogonAsService 26405

//Last available is 26450
#define msierrGRPFailedGroupCreate 26421
#define msierrGRPFailedGroupGroupAdd 26422
#define msierrGRPFailedGroupCreateExists 26423

//Last available is 26450
12 changes: 12 additions & 0 deletions src/ext/Util/ca/sca.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,15 @@ enum SCAU_ATTRIBUTES
SCAU_NON_VITAL = 0x00000400,
SCAU_REMOVE_COMMENT = 0x00000800,
};

// group creation attributes definitions
enum SCAG_ATTRIBUTES
{
SCAG_FAIL_IF_EXISTS = 0x00000001,
SCAG_UPDATE_IF_EXISTS = 0x00000002,

SCAG_DONT_REMOVE_ON_UNINSTALL = 0x00000004,
SCAG_DONT_CREATE_GROUP = 0x00000008,
SCAG_NON_VITAL = 0x00000010,
SCAG_REMOVE_COMMENT = 0x00000020,
};
2 changes: 2 additions & 0 deletions src/ext/Util/ca/scacost.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const UINT COST_SMB_CREATESMB = 10000;
const UINT COST_SMB_DROPSMB = 5000;
const UINT COST_USER_ADD = 10000;
const UINT COST_USER_DELETE = 10000;
const UINT COST_GROUP_ADD = 10000;
const UINT COST_GROUP_DELETE = 10000;

const UINT COST_PERFMONMANIFEST_REGISTER = 1000;
const UINT COST_PERFMONMANIFEST_UNREGISTER = 1000;
Expand Down
Loading

0 comments on commit c2a5c0e

Please sign in to comment.