Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW please] CreateGroups additions #530

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
};
4 changes: 4 additions & 0 deletions src/ext/Util/ca/scacost.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ 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_GROUPMEMBERSHIP_ADD = 10000;
const UINT COST_GROUPMEMBERSHIP_DELETE = 10000;

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