ResUtilSetValueEx function

Sets a value in the cluster database.

Syntax

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

Parameters

hkeyClusterKey

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

valueName

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

valueType

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

valueData

A pointer to the new data for the value.

valueSize

The size of the new value, in bytes.

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

   
Windows version None supported Windows Server 2012 R2
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll