Share via


LogFilePath

Specifies the path to the DHCP log file. The following table summarizes the attributes of the LogFilePath 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 The DHCP LogFilePath property defaults to a value of the form drive:\old path where drive is the drive letter of the Physical Disk dependency and old path is the former path to the log file. For example, if a DHCP Service resource depends on drive K: and the former path was C:\WinNT\System32\dhcp, the default for this property will be K:\WinNT\System32\dhcp.

Remarks

The DHCP log file 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 LogFilePath can be set with the following example code.

WCHAR szLogFilePathData[] = L"\\\\DHCP\\Log";
CLUSPROP_SZ_DECLARE( LogFilePathValue, 
                     sizeof( szLogFilePathData ) / sizeof( WCHAR ) );
LogFilePathValue.Syntax.dw = CLUSPROP_SYNTAX_LIST_VALUE_SZ;
LogFilePathValue.cbLength = sizeof( szLogFilePathData );
StringCbCopy( LogFilePathValue.sz, LogFilePathValue.cbLength, szLogFilePathData );

Requirements

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

See also

DHCP Service Private Properties

BackupPath

DatabasePath

CLUSPROP_SZ

CLUSPROP_SZ_DECLARE