OnlineClusterResource function (clusapi.h)

Brings an offline or failed resource online. The PCLUSAPI_ONLINE_CLUSTER_RESOURCE type defines a pointer to this function.

Syntax

DWORD OnlineClusterResource(
  [in] HRESOURCE hResource
);

Parameters

[in] hResource

Handle to the resource to be brought online.

Return value

If the operation 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_IO_PENDING
The resource or one of the resources it depends on has returned ERROR_IO_PENDING from its Online entry point function.

Remarks

Do not call OnlineClusterResource from a resource DLL. For more information, see Function Calls to Avoid in Resource DLLs.

Requirements

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

See also

Offline

OfflineClusterResource

Online

OpenClusterResource