次の方法で共有


BackupPath

Specifies the path to the WINS backup file. The following table summarizes the attributes of the BackupPath 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 %SystemRoot%\wins\backup

Remarks

The WINS backup path does not include a file name or a trailing backslash.

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

WCHAR szBackupPathData[] = L"\\\\WINS\\BackupDirectory";
CLUSPROP_SZ_DECLARE( BackupPathValue, 
                     sizeof( szBackupPathData ) / sizeof( WCHAR ) );
BackupPathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
BackupPathValue.cbLength = sizeof( szBackupPathData );
StringCbCopy( BackupPathValue.sz, 
              BackupPathValue.cbLength, 
              szBackupPathData );

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter

See also

WINS Service Private Properties

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE