The AddClusterResourceDependency function creates a dependency relationship between two resources.
DWORD WINAPI AddClusterResourceDependency(
HRESOURCE hResource,
HRESOURCE hDependsOn
);
If the operation was unsuccessful, AddClusterResourceDependency returns a Win32 error value.
A dependency relationship affects how resources are moved from one node to another after a failure. It determines the order in which resources are taken offline and brought back online.
Resources in a dependency relationship must be moved together. The dependent resource must be brought online after the resource upon which it depends.
The two resources identified by hResource and hDependsOn must be in the same group. Also, if hResource is currently online, hDependsOn must also be currently online.