CreateClusterResource

The CreateClusterResource function creates a resource in a cluster.

HRESOURCE WINAPI CreateClusterResource(
  HGROUP hGroup,             
  LPCWSTR lpszResourceName,  
  LPCWSTR lpszResourceType,  
  DWORD dwFlags              
);
 

Parameters

hGroup
[in] Handle to the group that should receive the resource.
lpszResourceName
[in] Pointer to the name of the new resource. The specified name must be unique within the cluster.
lpszResourceType
[in] Pointer to the type of new resource. The specified type must be installed in the cluster.
dwFlags
[in] Bitmask describing how the resource should be added to the cluster. The dwFlags parameter is optional. If set, the following value is valid:
CLUSTER_RESOURCE_SEPARATE_MONITOR
This resource should be created using a separate resource monitor instead of a resource monitor that is shared.

Return Values

NULL
The operation was not successful. For detailed information about the error, call the Win32 function GetLastError.

If the operation was successful, CreateClusterResource returns a resource handle.

QuickInfo

  Version: Use Windows NT Server Enterprise Edition 4.0.
  Windows CE: Unsupported.
  Header: Declared in clusapi.h.