CLUS_RESOURCE_CLASS_INFO structure

Contains resource class data. It is used as the data member of a CLUSPROP_RESOURCE_CLASS_INFO structure and as the return value of some control code operations.

Syntax


typedef struct CLUS_RESOURCE_CLASS_INFO {
  union {
    struct {
      union {
        DWORD                  dw;
        CLUSTER_RESOURCE_CLASS rc;
      } DUMMYUNIONNAME;
      DWORD SubClass;
    } DUMMYSTRUCTNAME;
    ULARGE_INTEGER li;
  } DUMMYUNIONNAME;
} CLUS_RESOURCE_CLASS_INFO, *PCLUS_RESOURCE_CLASS_INFO;

Members

DUMMYUNIONNAME
DUMMYSTRUCTNAME
DUMMYUNIONNAME
dw

Provides another way to access the resource class data.

rc

Resource class described with one of the following values enumerated from the CLUSTER_RESOURCE_CLASS enumeration.

CLUS_RESCLASS_UNKNOWN (0)

Resource class is unknown.

CLUS_RESCLASS_STORAGE (1)

Resource is a storage device, such as a Physical Disk resource.

CLUS_RESCLASS_NETWORK (2)

Resource is a network device.

CLUS_RESCLASS_USER (32768 (0x8000))

Resource classes beginning at this value are user-defined.

SubClass

A mask value that further describes the resource class. The following value is valid for storage class resources such as Physical Disk resources.

CLUS_RESSUBCLASS_SHARED (0x80000000)

Indicates that the resource manages a shared resource such as a disk on a shared SCSI bus.

li

Resource class and subclass described as a ULARGE_INTEGER value with a low DWORD and a high DWORD.

Remarks

A resource class identifies resources of similar capability. A resource DLL that defines its own resource class should provide a unique identifier for the class that is set to a value greater than CLUS_RESCLASS_USER. CLUS_RESCLASS_USER specifies the beginning for user-defined resource class identifiers.

A CLUS_RESOURCE_CLASS_INFO structure is returned by ClusterResourceControl when the dwControlCode parameter is set to CLUSCTL_RESOURCE_GET_CLASS_INFO and is returned by ClusterResourceTypeControl when dwControlCode is set to CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

Header

ClusAPI.h

See also

CLUSCTL_RESOURCE_GET_CLASS_INFO
CLUSCTL_RESOURCE_TYPE_GET_CLASS_INFO
CLUSPROP_RESOURCE_CLASS_INFO
ClusterResourceControl
ClusterResourceTypeControl
CLUSTER_RESOURCE_CLASS
CLUS_RESSUBCLASS
CLUS_RESSUBCLASS_NETWORK
CLUS_RESSUBCLASS_STORAGE

 

 

Show: