Type Property for Resources

The Type property specifies the display name for the resource's type, such as Physical Disk or Generic Application.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES

Remarks

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_COMMON_PROPERTIES control code, it returns a property list that includes the Type property as one of the entries. The property value portion of the entry contains a CLUSPROP_SZ structure that is set as follows:

CLUSPROP_SZ TypeValue;
LPCWSTR TypeData = L "Generic Application";
TypeValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
TypeValue.cbLength = sizeof(TypeData);
lstrcpyW(TypeValue.sz, TypeData);
 

The Name property for resource types also specifies a resource type display name. To retrieve a resource type's Name property, call ClusterResourceTypeControl and set dwControlCode to CLUSCTL_RESOURCE_TYPE_GET_COMMON_PROPERTIES.

To access the type name of a resource type, call ClusterResourceControl and pass CLUSCTL_RESOURCE_GET_RESOURCE_TYPE for the dwControlCode parameter.

QuickInfo

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