DiskPath
Used in some recovery scenarios. If this is set to a disk (for example "H:\") then the Physical Disk resource will take control of that disk as part of the recovery process. The following table summarizes the attributes of the DiskPath property.
| Attribute | Value |
|---|---|
| Data type | Null-terminated Unicode string |
| Access | Read/write |
| Status | Optional |
| Structure | CLUSPROP_SZ |
| Minimum | 0 |
| Maximum | None (but see Maximum String Size) |
| Default | 0 |
Remarks
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 DiskPath can be set with the following example code.
WCHAR szDiskPathData[] = L"H:\\";
CLUSPROP_SZ_DECLARE( DiskPathValue,
sizeof( szDiskPathData ) / sizeof( WCHAR ) );
DiskPathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DiskPathValue.cbLength = sizeof( szDiskPathData );
StringCbCopy( DiskPathValue.sz,
DiskPathValue.cbLength,
szDiskPathData );
Requirements
|
Minimum supported client | None supported [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only] |
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012