Click to Rate and Give Feedback
Drive

[The Drive property is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Specifies the drive letter for the Physical Disk resource. The following table summarizes the attributes of the Drive property.

AttributeValue

Data type

Null-terminated Unicode string

Access

Read/write

Status

Required

Structure

CLUSPROP_SZ

Minimum

NULL

Maximum

None (but see Maximum String Size).

Default

NULL

 

Remarks

The Drive property is used to create Physical Disk resources with the command-line tool Cluster.exe. Make sure that the assigned drive letter does not conflict with existing drive letters anywhere in the cluster, including each node's local drives.

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 Drive can be set with the following example code.


WCHAR                szDriveData[] = L"D:";
CLUSPROP_SZ_DECLARE( DriveValue, 
                     sizeof( szDriveData ) / sizeof( WCHAR ) );

DriveValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DriveValue.cbLength  = sizeof( szDriveData );
StringCbCopy( DriveValue.sz, DriveValue.cbLength, szDriveData );

Requirements

Minimum supported clientNone supported
Minimum supported serverWindows 2000 Server Advanced Server, Windows 2000 Server Datacenter
End of server supportWindows Server 2003 Datacenter, Windows Server 2003 Enterprise

See Also

Physical Disk Private Properties
CLUSPROP_SZ
CLUSPROP_SZ_DECLARE

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker