The CurrentDirectory property describes the directory in which the application should be run.
Type: | Null-terminated Unicode string |
Access: | Read/write |
Status: | Required |
Function: | ClusterResourceControl |
Structure: | CLUSPROP_SZ |
Control Code: | CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES |
When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes the CurrentDirectory property as one of the entries. The property value portion of the entry contains a CLUSPROP_SZ structure that is set as follows:
CLUSPROP_SZ CurrentDirectoryValue;
LPCWSTR CurrentDirectoryData = L "C:\bin";
CurrentDirectoryValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
CurrentDirectoryValue.cbLength = sizeof(CurrentDirectoryData);
lstrcpyW(CurrentDirectoryValue.sz, CurrentDirectoryData);
The path in the CurrentDirectory property must be an absolute path on a shared disk. An environment variable representing a path cannot be used. A dot (.) defaults to the directory in which the Cluster Service is installed.
Version: Use Windows NT Server Enterprise Edition 4.0.
Windows CE: Unsupported.
Header: Declared in clusapi.h.