The AddSaveRule method adds save rule
HRESULT AddSaveRule(
[in] LONG p_nType,
[in, string] LPCWSTR p_wsName,
[in, string] LPCWSTR p_wsDescription,
[in, string] LPCWSTR p_wsText,
[in, string] LPCWSTR 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 rul at the end of the list.