Platform SDK: Exchange Server |
The Install method informs the custom action DLL of the context in which it is invoked. The Microsoft Exchange Client calls this method either when the user selects a custom action for an Inbox Assistant rule or when that rule is triggered.
HRESULT Install( LPEXCHANGERULEEXTCALLBACK percb, ULONG ulContext );
Return E_FAIL if the user cancels the command; return NOERROR if the command completes successfully.
The custom action DLL is invoked from either the Inbox Assistant or from the Microsoft Exchange Client. The Inbox Assistant invokes this method so it can then assign a custom action to a rule using the GetCommand method. The Microsoft Exchange Client invokes this method so it can then apply that rule to the associated message using the Command method.