DHCP_SERVER_CONFIG_INFO structure (dhcpsapi.h)

The DHCP_SERVER_CONFIG_INFO structure defines the data used to configure the DHCP server.

Syntax

typedef struct _DHCP_SERVER_CONFIG_INFO {
  DWORD  APIProtocolSupport;
  LPWSTR DatabaseName;
  LPWSTR DatabasePath;
  LPWSTR BackupPath;
  DWORD  BackupInterval;
  DWORD  DatabaseLoggingFlag;
  DWORD  RestoreFlag;
  DWORD  DatabaseCleanupInterval;
  DWORD  DebugFlag;
} DHCP_SERVER_CONFIG_INFO, *LPDHCP_SERVER_CONFIG_INFO;

Members

APIProtocolSupport

Specifies a set of bit flags that contain the RPC protocols supported by the DHCP server.

Value Meaning
DHCP_SERVER_USE_RPC_OVER_TCPIP
0x00000001
TCP/IP can be used for DHCP API RPC calls.
DHCP_SERVER_USE_RPC_OVER_NP
0x00000002
Named pipes can be used for DHCP API RPC calls.
DHCP_SERVER_USE_RPC_OVER_LPC
0x00000004
Local Procedure Call (LPC) can be used for local DHCP API RPC calls.

DatabaseName

Unicode string that specifies the file name of the client lease JET database.

DatabasePath

Unicode string that specifies the absolute path to DatabaseName.

BackupPath

Unicode string that specifies the absolute path and file name of the backup client lease JET database.

BackupInterval

Specifies the interval, in minutes, between backups of the client lease database.

DatabaseLoggingFlag

Specifies a bit flag that indicates whether or not database actions should be logged.

Value Meaning
0x00000001
All database operations will be logged.

RestoreFlag

Specifies a bit flag that indicates whether or not a database restore operation should be performed.

Value Meaning
0x00000001
The client lease database should be restored from the path and file specified in BackupPath.

DatabaseCleanupInterval

Specifies the interval, in minutes, between cleanup operations performed on the client lease database.

DebugFlag

Reserved. This field should be set to 0x00000000.

Requirements

Requirement Value
Minimum supported server Windows Server 2003
Header dhcpsapi.h

See also

DHCP_SERVER_CONFIG_INFO_V4

DhcpServerGetConfig

DhcpServerSetConfig