Reading Rule Contents
The following procedure describes how to read the contents of a rule within the rule table.
To read a rule table
-
Retrieve an interface pointer to the rule object using HrFolderRulesOpen.
-
Use the rule object’s IExchangeFolderRules::HrSeek method to seek to the beginning of the table.
-
Use the rule object’s IExchangeFolderRules::HrGet method within a loop to step through the rule table, reading successive rule entries. (HrGet automatically advances the table cursor to point to the next table entry after each call.)