Reading ACLs
You can use the IExchangeFolderACLs::HrSeek and IExchangeFolderACLs::HrGet methods to read existing ACLs from a folder’s ACL table. The HrGet method retrieves the access rights for the current member of the ACL table.
To read an ACL table
-
Retrieve an interface pointer to the ACL object using HrFolderACLsOpen.
-
Use the ACL object’s IExchangeFolderACLs::HrSeek method to seek to the beginning of the table.
-
Use the ACL object’s IExchangeFolderACLs::HrGet method within a loop to step through the ACL table, reading successive ACL entries. (HrGet automatically advances the table cursor to point to the next table entry after each call.)