This topic has not yet been rated - Rate this topic

Type

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

AttributeValue
Data typeNull-terminated Unicode string
Access Read/write
Structure CLUSPROP_SZ
MinimumNULL
MaximumNone (but see Maximum String Size).
DefaultNULL

 

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 [desktop apps only]

Minimum supported server

Windows 2000 Server Advanced Server, Windows 2000 Server Datacenter [desktop apps only]

See also

CLUSCTL_RESOURCE_GET_RESOURCE_TYPE
CLUSPROP_SZ
CLUSPROP_SZ_DECLARE
ClusterResourceControl
Name

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.