The SetSaveRule method sets values for the save rule at the given index
HRESULT SetSaveRule(
[ in ] LONG p_nIndex
[ 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
);
Parameters:
p_nIndex
[in] save rule index
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, tag is enabled
Return values:
S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded
NV_INVALID_SAVE_RULE - invalid save rule index
Remarks:
This method sets information for the save rule at given index