CurrentDirectory

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

Describes the directory in which the application should be run. The following table summarizes the attributes of the CurrentDirectory property.

Attribute Value
Data type Null-terminated Unicode string
Access Read/write
Status Required
Structure CLUSPROP_SZ
Maximum None (but see Maximum Property Size.)
Default NULL

Remarks

The path in the CurrentDirectory property must be an absolute path on a cluster disk. An environment variable representing a path cannot be used. A dot (.) defaults to the directory in which the Cluster service is installed.

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

WCHAR                szCurrentDirectoryData[] = L"C:\\Bin";
CLUSPROP_SZ_DECLARE( CurrentDirectoryValue, 
                     sizeof(szCurrentDirectoryData) / sizeof(WCHAR) );

CurrentDirectoryValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
CurrentDirectoryValue.cbLength  = sizeof( szCurrentDirectoryData );
StringCbCopy( CurrentDirectoryValue.sz, 
              CurrentDirectoryValue.cbLength, 
              szCurrentDirectoryData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003 Enterprise, Windows Server 2003 Datacenter
End of server support
Windows Server 2003 Datacenter, Windows Server 2003 Enterprise

See also

Generic Application Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE