The HrEnable method enables the current rule on a folder.
HRESULT HrEnable(
VOID
);
None.
See Return Values.
In addition, HrEnable returns E_FAIL if one of the following conditions occurs:
An attempt was made to enable a rule when the cursor is at the end of the rules table (no current member).
The current cursor position, as returned by the HrTell method, is RULE_PAST_END.
Use the HrEnable method to enable a rule that was previously disabled by the HrDisable method. HrEnable does not return an error if the rule is not disabled. Use the HrGet method to obtain the status of the rule.
For additional information, see RULEEDIT: Manipulating Rules