ResUtilGetSzValue

The ResUtilGetSzValue utility function returns a string value from the cluster database.

LPWSTR WINAPI ResUtilGetSzValue(
  HKEY ClusterKey,  
  LPCWSTR ValueName 
);
 

Parameters

ClusterKey
[in] Key identifying the location of the value in the cluster database.
ValueName
[in] Name of the value to retrieve.

Return Values

If the operation was successful, ResUtilGetSzValue returns a pointer to a buffer containing the string value.

If the operation was unsuccessful, ResUtilGetSzValue returns NULL. A call can be made to the Win32 function GetLastError for more information.

Notes to Callers

ResUtilGetSzValue allocates the necessary memory for the string parameter value before calling the Cluster API function ClusterRegQueryValue to access the cluster database. When you are finished with this memory, you must call the Win32 function LocalFree to release it.

QuickInfo

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