Freigeben über


DatabasePath

Specifies the path to the WINS database. The following table summarizes the attributes of the DatabasePath 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\wins.mdb

Remarks

Note that the WINS database path includes the file name of the database.

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

WCHAR szDatabasePathData[] = L"\\\\WINS\\DBDirectory\\wins.mdb";
CLUSPROP_SZ_DECLARE( DatabasePathValue, 
                     sizeof( szDatabasePathData ) / sizeof( WCHAR ) );
DatabasePathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
DatabasePathValue.cbLength = sizeof( szDatabasePathData );
StringCbCopy( DatabasePathValue.sz, 
              DatabasePathValue.cbLength, 
              szDatabasePathData );

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