2.2.2.3 AUTHZ_SID_OPERATION

The AUTHZ_SID_OPERATION enumeration indicates the type of SID operations that can be made by a call to the AuthzrModifySids operation (section 3.1.4.7).

 typedef enum _AUTHZ_SID_OPERATION {
     AUTHZ_SID_OPERATION_NONE = 0,
     AUTHZ_SID_OPERATION_REPLACE_ALL = 1,
     AUTHZ_SID_OPERATION_ADD = 2,
     AUTHZ_SID_OPERATION_DELETE = 3,
     AUTHZ_SID_OPERATION_REPLACE = 4
 } AUTHZ_SID_OPERATION;
  

AUTHZ_SID_OPERATION_NONE: Do not modify anything. 

AUTHZ_SID_OPERATION_REPLACE_ALL: Replace the existing SIDs with the specified SIDs. If replacement SIDs are not specified, delete the existing SIDs. This operation can be specified only once and must be the only operation specified.

AUTHZ_SID_OPERATION_ADD: Add a new SID. If the SID already exists, fail the call.

AUTHZ_SID_OPERATION_DELETE: Delete the specified SID. If the specified SID is not found, fail the call without taking action.

AUTHZ_SID_OPERATION_REPLACE: Replace the existing SID with the specified SID. If the SID does not exist, add the specified SID.