The AddAction method adds an action
HRESULT AddAction(
[in] LONG p_nType,
[in, string] LPCWSTR p_wsActionName,
[out, string] LPWSTR* p_pwsNewActionId,
[out] LONG* p_pnIndex
);
Parameters:
p_nType
[in] action type (1-copy, 2- delete, 3 - MAPI email, 4 - SMTP email, 6 - open, 7 - run application, 8 - FTP, 9 - SFTP)
p_wsActionName
[in] action name
p_pwsNewActionId
[out] action id
p_pnIndex
[out] action index
Return values:
S_OK
on success or COM
error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_OPTION
- wrong action typeRemarks:
This method adds a new action at the end of the list of actions. After adding an action. you can change action position in the list and set specific options for each action type.