CLUS_RESOURCE_CLASS_INFO structure (clusapi.h)

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

DUMMYUNIONNAME.DUMMYSTRUCTNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME.DUMMYUNIONNAME

DUMMYUNIONNAME.DUMMYSTRUCTNAME.DUMMYUNIONNAME.dw

Provides another way to access the resource class data.

DUMMYUNIONNAME.DUMMYSTRUCTNAME.DUMMYUNIONNAME.rc

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

####### DUMMYSTRUCTNAME.DUMMYUNIONNAME.rc.CLUS_RESCLASS_UNKNOWN (0)

Resource class is unknown.

####### DUMMYSTRUCTNAME.DUMMYUNIONNAME.rc.CLUS_RESCLASS_STORAGE (1)

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

####### DUMMYSTRUCTNAME.DUMMYUNIONNAME.rc.CLUS_RESCLASS_NETWORK (2)

Resource is a network device.

####### DUMMYSTRUCTNAME.DUMMYUNIONNAME.rc.CLUS_RESCLASS_USER (32768 (0x8000))

Resource classes beginning at this value are user-defined.

DUMMYUNIONNAME.DUMMYSTRUCTNAME.SubClass

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

DUMMYSTRUCTNAME.SubClass.CLUS_RESSUBCLASS_SHARED (0x80000000)

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

DUMMYUNIONNAME.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

CLUSTER_RESOURCE_CLASS

CLUS_RESSUBCLASS

CLUS_RESSUBCLASS_NETWORK

CLUS_RESSUBCLASS_STORAGE

ClusterResourceControl

ClusterResourceTypeControl