GetClusterResourceDependencyExpression function (clusapi.h)

Retrieves the dependency expression associated with the specified resource. The PCLUSAPI_GET_CLUSTER_RESOURCE_DEPENDENCY_EXPRESSION type defines a pointer to this function.

Syntax

DWORD GetClusterResourceDependencyExpression(
  [in]            HRESOURCE hResource,
  [out, optional] LPWSTR    lpszDependencyExpression,
  [in, out]       LPDWORD   lpcchDependencyExpression
);

Parameters

[in] hResource

Handle to the resource.

[out, optional] lpszDependencyExpression

Address of buffer that will receive the dependency expression.

[in, out] lpcchDependencyExpression

Size in characters of the buffer pointed to by the lpszDependencyExpression parameter.

Return value

ERROR_SUCCESS (0) if successful.

Requirements

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

See also

Failover Cluster Resource Management Functions

SetClusterResourceDependencyExpression