Share via


ShareName

[The ShareName property is no longer available for use as of Windows Server 2012.]

This property is not supported.

**Windows Server 2003: **

Describes the name of the file share present on the network. The following table summarizes the attributes of the ShareName 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

All ShareName values within a given cluster must be unique.

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

WCHAR szShareNameData[]  = L"Sharename";
CLUSPROP_SZ_DECLARE( ShareNameValue, 
                     sizeof( szShareNameData ) / sizeof( WCHAR ) );

ShareNameValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
ShareNameValue.cbLength  = sizeof( szShareNameData );
StringCbCopy( ShareNameValue.sz, ShareNameValue.cbLength, szShareNameData );

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

File Share Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE