ShareName Property for File Shares

The ShareName property describes the name of the file share present on the network.

Quick Info

Type: Null-terminated Unicode string
Access: Read/write
Status: Required
Function: ClusterResourceControl
Structure: CLUSPROP_SZ
Control Code: CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES

Remarks

When ClusterResourceControl processes the CLUSCTL_RESOURCE_GET_PRIVATE_PROPERTIES control code, it returns a property list that includes the ShareName 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 ShareNameValue;
LPCWSTR ShareNameData = L "Sharename";
ShareNameValue.Syntax = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
ShareNameValue.cbLength = sizeof(ShareNameData);
lstrcpyW(ShareNameValue.sz, ShareNameData);

QuickInfo

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