Freigeben über


Type

Specifies the display name of the resource. The following table summarizes the attributes of the Type property.

Attribute Value
Data type Null-terminated Unicode string
Access Read/write
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default NULL

Remarks

It is important to distinguish between the display name of the resource's type and the registered name of the resource's type. For more information, see Display Names.

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

The Name property for resource types also specifies a resource type display name.

The CLUSPROP_SZ_DECLARE macro creates a CLUSPROP_SZ structure with an array of the correct size.

Examples

The property value portion of a property list entry for Type can be set with the following example code:

WCHAR szTypeData[] = L"Generic Application";
CLUSPROP_SZ_DECLARE( TypeValue, sizeof( szTypeData ) / sizeof( WCHAR ) );
TypeValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
TypeValue.cbLength = sizeof( szTypeData );
StringCbCopy( TypeValue.sz, TypeValue.cbLength, szTypeData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

See also

CLUSCTL_RESOURCE_GET_RESOURCE_TYPE

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE

ClusterResourceControl

Name