GetClusterResourceDependencyExpression function

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 WINAPI GetClusterResourceDependencyExpression(
  _In_      HRESOURCE hResource,
  _Out_opt_ LPWSTR    lpszDependencyExpression,
  _Inout_   LPDWORD   lpcchDependencyExpression
);

typedef DWORD (WINAPI *PCLUSAPI_GET_CLUSTER_RESOURCE_DEPENDENCY_EXPRESSION)(
    _In_      HRESOURCE hResource,
    _Out_opt_ LPWSTR    lpszDependencyExpression,
    _Inout_   LPDWORD   lpcchDependencyExpression
);

Parameters

hResource [in]

Handle to the resource.

lpszDependencyExpression [out, optional]

Address of buffer that will receive the dependency expression.

lpcchDependencyExpression [in, out]

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

Return value

ERROR_SUCCESS (0) if successful.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Failover Cluster Resource Management Functions
SetClusterResourceDependencyExpression

 

 

Show: