The AddSaveRule2 method adds save rule
HRESULT AddSaveRule2(
[in] LONG p_nType,
[in, string] BSTR p_wsName,
[in, string] BSTR p_wsDescription,
[in, string] BSTR p_wsText,
[in, string] BSTR p_wsFormat,
[in] BOOL p_bEnabled,
[out] LONG* p_pnIndex
);
Parameters:
p_nType
[in] save rule type (0-remove from start, 1- remove from end, 2 - remove all, 3 - regular expression)
p_wsName
[in] rule name
p_wsDescription
[in] rule description
p_wsText
[in] text to remove or regular expression
p_wsFormat
[in] format for regular expression
p_bEnabled
[in] flag, rule is enabled
p_pnIndex
[out] rule index
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedRemarks:
This method adds a new save rule at the end of the list.