ResUtilSetValueEx function (resapi.h)

Sets a value in the cluster database.

Syntax

DWORD ResUtilSetValueEx(
  [in] HKEY         hkeyClusterKey,
  [in] LPCWSTR      valueName,
  [in] DWORD        valueType,
  [in] const LPBYTE valueData,
  [in] DWORD        valueSize,
  [in] DWORD        flags
);

Parameters

[in] hkeyClusterKey

A key that identifies the location of the value in the cluster database.

[in] valueName

A Null-terminated Unicode string that contains the name of the value to update.

[in] valueType

A flag that indicates the type of the value to update.

[in] valueData

A pointer to the new data for the value.

[in] valueSize

The size of the new value, in bytes.

[in] flags

The flags that specify settings for the operation.

Return value

Returns ERROR_SUCCESS if the operation succeeds; otherwise, returns a system error code.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012 R2
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll