The SetUserTag2 method changes the user tag for the given index
HRESULT SetUserTag2(
[ in ] LONG p_nIndex,
[ in, string ] BSTR p_wsTag,
[ in, string ] BSTR p_wsDefaultValue,
[ in ] BOOL p_bEnabled
);
Parameters:
p_nIndex
[in] tag index
p_wsTag
[in] user tag
p_wsDefaultValue
[in] default tag value
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_USER_TAG - invalid user tag index
Remarks:
This method changes information for the tag at position given by p_nIndex