ResUtilGetProperty function (resapi.h)

Returns a specified property from the cluster database. The PRESUTIL_GET_PROPERTY type defines a pointer to this function.

Syntax

DWORD ResUtilGetProperty(
  [in]      HKEY                         hkeyClusterKey,
  [in]      const PRESUTIL_PROPERTY_ITEM pPropertyTableItem,
  [out]     PVOID                        *pOutPropertyItem,
  [in, out] LPDWORD                      pcbOutPropertyItemSize
);

Parameters

[in] hkeyClusterKey

Pointer to the cluster database key identifying the location of the property to retrieve.

[in] pPropertyTableItem

Pointer to a RESUTIL_PROPERTY_ITEM structure that describes the property to retrieve.

[out] pOutPropertyItem

Pointer to an output buffer in which to return the requested property. It is assumed that the buffer is part of a property list.

[in, out] pcbOutPropertyItemSize

Pointer to the size in bytes of the output buffer pointed to by pOutPropertyItem.

Return value

If the operations succeeds, the function returns ERROR_SUCCESS.

If the operation fails, the function returns a system error code. The following is a possible error code.

Return code Description
ERROR_BAD_ARGUMENTS
One or more of the input parameters were invalid.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Target Platform Windows
Header resapi.h
Library ResUtils.lib
DLL ResUtils.dll

See also

RESUTIL_PROPERTY_ITEM