ResUtilGetDwordValue

The ResUtilGetDwordValue utility function returns a numeric value from the cluster database.

DWORD WINAPI ResUtilGetDwordValue(
  HKEY ClusterKey,             
  LPCWSTR ValueName,           
  LPDWORD OutValue,           
  DWORD DefaultValue
);
 

Parameters

ClusterKey
[in] Key identifying the location of the numeric value in the cluster database.
ValueName
[in] Pointer to the name of the value to retrieve.
OutValue
[out] Pointer to the retrieved value.
DefaultValue
[in] Value to return if the value pointed to by ValueName is not found.

Return Values

ERROR_SUCCESS
The operation completed successfully.
ERROR_INVALID_PARAMETER
The value pointed to by ValueName is not a numeric value.
ResUtilGetDwordValue can also return Win32® error codes that are returned by ClusterRegQueryValue.

Notes to Callers

ResUtilGetDwordValue calls the Cluster API function ClusterRegQueryValue to retrieve the value.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.