83
87
/* Create a new ACL that merges the new ACE into the existing DACL. */
84
88
dwRes = SetEntriesInAcl(1, &ea, pOldDACL, &pNewDACL);
90
95
/* Attach the new ACL as the object's DACL. */
91
96
dwRes = SetNamedSecurityInfo(pszObjName, ObjectType,
93
NULL, NULL, pNewDACL, NULL);
98
NULL, NULL, pNewDACL, NULL);