The SetCustomProperty method changes the custom property for the given index
HRESULT SetCustomProperty(
[ in ] LONG p_nIndex,
[ in, string ] LPCWSTR p_wsPropertyName,
[ in, string ] LPCWSTR p_wsPropertyValue,
[ in ] BOOL p_bEnabled
);
Parameters:
p_nIndex
[in] custom property index
p_wsPropertyName
[in] custom property name
p_wsPropertyValue
[in] custom property value
p_bEnabled
[in] flag, custom property 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_CUSTOM_PROPERTY - invalid custom property index
Remarks:
This method changes information for the custom property at position given by p_nIndex