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 |
| Minimum | NULL |
| Maximum | None (but see Maximum String 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 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server Advanced Server, Windows 2000 Server Datacenter [desktop apps only] |
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012