The ResUtilSetBinaryValue utility function sets a binary value in the cluster database.
DWORD WINAPI ResUtilSetBinaryValue(
HKEY ClusterKey,
LPCWSTR ValueName,
const LPBYTE NewValue,
DWORD NewValueSize,
LPBYTE * OutValue,
LPDWORD OutValueSize
);
ResUtilSetBinaryValue can also return Win32® error codes that are returned by ClusterRegSetValue.
ResUtilSetBinaryValue allocates memory for the OutValue pointer using the Win32 function LocalAlloc, calls the Cluster API function ClusterRegSetValue, and then copies the new value to this buffer. If the pointer is not null, ResUtilSetBinaryValue also deallocates it. As callers of this function, you are responsible for deallocating the buffer using the Win32 function LocalFree.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.