Drive Property for Physical Disks

The Drive property specifies the drive letter for the Physical Disk resource.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Status: Required only if the Signature property is not provided
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES

Remarks

The Drive property is used to create Physical Disk resources with the command-line tool CLUSTER.EXE. The drive letter for a disk does not have to be unique. However, it is recommended that resource DLLs attempt to make drive letters match across machines.

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes an entry for the Drive property for each partition for the resource.

The property value portion of the property list entry contains a CLUSPROP_SZ structure that is set as follows:

CLUSPROP_SZ DriveValue;
LPCWSTR DriveData = L "D:";
DriveValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DriveValue.cbLength = sizeof(DriveData);
lstrcpyW(DriveValue.sz, DriveData);

QuickInfo

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