PRB: RuleEdit Fails with MAPI_E_CALL_FAILED (Error 80004005)

ID: Q194937

The information in this article applies to:

SYMPTOMS

The RuleEdit sample has been included with the Platform Software Development Kit (SDK) to help users understand how to programmatically manipulate rules. However, using RuleEdit to add rules into a rule table that is empty results in the MAPI_E_CALL_FAILED error.

CAUSE

With an empty rule table, you cannot get a pointer to the IExchangeFolderRules interface.

RESOLUTION

The easiest way to fix this is to add a rule through the client interface. However, you can do this programmatically using the IExchangeModifyTable interface. Either of these methods works and allows RuleEdit to add rules.

Additional query words:

Keywords          : kbMsg kbEDK500 kbEDK550 
Version           : WINDOWS:5.0,5.5
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: November 4, 1998