Reading Rule Contents

The following procedure describes how to read the contents of a rule within the rule table.

    To read a rule table
  1. Retrieve an interface pointer to the rule object using HrFolderRulesOpen.
  2. Use the rule object’s IExchangeFolderRules::HrSeek method to seek to the beginning of the table.
  3. 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.)