The HrDisable method disables the current rule on the folder.
HRESULT HrDisable(
VOID
);
None.
See Return Values.
In addition, HrDisable returns E_FAIL if one of the following conditions occurs:
You can enable the rule with the HrEnable method. If you want to delete the rule, use the HrDelete method.
For more information, see RULEEDIT: Manipulating Rules.