OnlineClusterResource function

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

Syntax


DWORD WINAPI OnlineClusterResource(
  _In_  HRESOURCE hResource
);

typedef DWORD (WINAPI *PCLUSAPI_ONLINE_CLUSTER_RESOURCE)(
    _In_  HRESOURCE hResource
);

Parameters

hResource [in]

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 codeDescription
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

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 Enterprise, Windows Server 2003 Datacenter

Header

ClusAPI.h

Library

ClusAPI.lib

DLL

ClusAPI.dll

See also

Offline
OfflineClusterResource
Online
OpenClusterResource

 

 

Show:
© 2014 Microsoft