DHCP Server Management API Error Codes

The following error codes are returned by DHCP Server Management API functions.

ERROR_DHCP_REGISTRY_INIT_FAILED
20000

The DHCP server registry initialization parameters are incorrect.

ERROR_DHCP_DATABASE_INIT_FAILED
20001

The DHCP server was unable to open the database of DHCP clients.

ERROR_DHCP_RPC_INIT_FAILED
20002

The DHCP server was unable to start as a Remote Procedure Call (RPC) server.

ERROR_DHCP_NETWORK_INIT_FAILED
20003

The DHCP server was unable to establish a socket connection.

ERROR_DHCP_SUBNET_EXISTS
20004

The specified subnet already exists on the DHCP server.

ERROR_DHCP_SUBNET_NOT_PRESENT
20005

The specified subnet does not exist on the DHCP server.

ERROR_DHCP_PRIMARY_NOT_FOUND
20006

The primary host information for the specified subnet was not found on the DHCP server.

ERROR_DHCP_ELEMENT_CANT_REMOVE
20007

The specified DHCP element has been used by a client and cannot be removed.

ERROR_DHCP_OPTION_EXISTS
20009

The specified option already exists on the DHCP server.

ERROR_DHCP_OPTION_NOT_PRESENT
20010

The specified option does not exist on the DHCP server.

ERROR_DHCP_ADDRESS_NOT_AVAILABLE
20011

The specified IP address is not available.

ERROR_DHCP_RANGE_FULL
20012

The specified IP address range has all of its member addresses leased.

ERROR_DHCP_JET_ERROR
20013

An error occurred while accessing the DHCP JET database. For more information about this error, please look at the DHCP server event log.

ERROR_DHCP_CLIENT_EXISTS
20014

The specified client already exists in the database.

ERROR_DHCP_INVALID_DHCP_MESSAGE
20015

The DHCP server received an invalid message.

ERROR_DHCP_INVALID_DHCP_CLIENT
20016

The DHCP server received an invalid message from the client.

ERROR_DHCP_SERVICE_PAUSED
20017

The DHCP server is currently paused.

ERROR_DHCP_NOT_RESERVED_CLIENT
20018

The specified DHCP client is not a reserved client.

ERROR_DHCP_RESERVED_CLIENT
20019

The specified DHCP client is a reserved client.

ERROR_DHCP_RANGE_TOO_SMALL
20020

The specified IP address range is too small.

ERROR_DHCP_IPRANGE_EXISTS
20021

The specified IP address range is already defined on the DHCP server.

ERROR_DHCP_RESERVEDIP_EXISTS
20022

The specified IP address is currently taken by another client.

ERROR_DHCP_INVALID_RANGE
20023

The specified IP address range either overlaps with an existing range or is invalid.

ERROR_DHCP_RANGE_EXTENDED
20024

The specified IP address range is an extension of an existing range.

ERROR_DHCP_RANGE_EXTENSION_TOO_SMALL
20025

The specified IP address range extension is too small. The number of addresses in the extension must be a multiple of 32.

ERROR_DHCP_WARNING_RANGE_EXTENDED_LESS
20026

An attempt was made to extend the IP address range to a value less than the specified backward extension. The number of addresses in the extension must be a multiple of 32.

ERROR_DHCP_JET_CONV_REQUIRED
20027

The DHCP database needs to be upgraded to a newer format. For more information, refer to the DHCP server event log.

ERROR_DHCP_SERVER_INVALID_BOOT_FILE_TABLE
20028

The format of the bootstrap protocol file table is incorrect. The correct format is:

<requested boot file name 1>,<boot file server name 1>, <boot file name 1>
<requested boot file name 2>,<boot file server name 2>, <boot file name 2>
...
ERROR_DHCP_SERVER_UNKNOWN_BOOT_FILE_NAME
20029

A boot file name specified in the bootstrap protocol file table is unrecognized or invalid.

ERROR_DHCP_SUPER_SCOPE_NAME_TOO_LONG
20030

The specified superscope name is too long.

ERROR_DHCP_IP_ADDRESS_IN_USE
20032

The specified IP address is already in use.

ERROR_DHCP_LOG_FILE_PATH_TOO_LONG
20033

The specified path to the DHCP audit log file is too long.

ERROR_DHCP_UNSUPPORTED_CLIENT
20034

The DHCP server received a request for a valid IP address not administered by the server.

ERROR_DHCP_SERVER_INTERFACE_NOTIFICATION_EVENT
20035

The DHCP server failed to receive a notification when the interface list changed, therefore some of the interfaces will not be enabled on the server.

ERROR_DHCP_JET97_CONV_REQUIRED
20036

The DHCP database needs to be upgraded to a newer format (JET97). For more information, refer to the DHCP server event log.

ERROR_DHCP_ROGUE_INIT_FAILED
20037

The DHCP server cannot determine if it has the authority to run, and is not servicing clients on the network. This rogue status may be due to network problems or insufficient server resources.

ERROR_DHCP_ROGUE_SAMSHUTDOWN
20038

The DHCP service is shutting down because another DHCP server is active on the network.

ERROR_DHCP_ROGUE_NOT_AUTHORIZED
20039

The DHCP server does not have the authority to run, and is not servicing clients on the network.

ERROR_DHCP_ROGUE_DS_UNREACHABLE
20040

The DHCP server is unable to contact the directory service for this domain. The DHCP server will continue to attempt to contact the directory service. During this time, no clients on the network will be serviced.

ERROR_DHCP_ROGUE_DS_CONFLICT
20041

The DHCP server's authorization information conflicts with that of another DHCP server on the network.

ERROR_DHCP_ROGUE_NOT_OUR_ENTERPRISE
20042

The DHCP server is ignoring a request from another DHCP server because the second server is a member of a different directory service enterprise.

ERROR_DHCP_STANDALONE_IN_DS
20043

The DHCP server has detected a directory service environment on the network. If there is a directory service on the network, the DHCP server can only run if it is a part of the directory service. Since the server ostensibly belongs to a workgroup, it is terminating.

ERROR_DHCP_CLASS_NOT_FOUND
20044

The specified DHCP class name is unknown or invalid.

ERROR_DHCP_CLASS_ALREADY_EXISTS
20045

The specified DHCP class name (or information) is already in use.

ERROR_DHCP_SCOPE_NAME_TOO_LONG
20046

The specified DHCP scope name is too long; the scope name must not exceed 256 characters.

ERROR_DHCP_DEFAULT_SCOPE_EXISTS
20047

The default scope is already configured on the server.

ERROR_DHCP_CANT_CHANGE_ATTRIBUTE
20048

The Dynamic BOOTP attribute cannot be turned on or off.

ERROR_DHCP_IPRANGE_CONV_ILLEGAL
20049

Conversion of a scope to a "DHCP Only" scope or to a "BOOTP Only" scope is not allowed when the scope contains other DHCP and BOOTP clients. Either the DHCP or BOOTP clients should be specifically deleted before converting the scope to the other type.

ERROR_DHCP_NETWORK_CHANGED
20050

The network has changed. Retry this operation after checking for network changes. Network changes may be caused by interfaces that are new or invalid, or by IP addresses that are new or invalid.

ERROR_DHCP_CANNOT_MODIFY_BINDINGS
20051

The bindings to internal IP addresses cannot be modified.

ERROR_DHCP_SUBNET_EXISTS
20052

The DHCP scope parameters are incorrect. Either the scope already exists, or its properties are inconsistent with the subnet address and mask of an existing scope.

ERROR_DHCP_MSCOPE_EXISTS
20053

The DHCP multicast scope parameters are incorrect. Either the scope already exists, or its properties are inconsistent with the subnet address and mask of an existing scope.

ERROR_DHCP_MSCOPE_RANGE_TOO_SMALL
20054

The multicast scope range must have at least 256 IP addresses.

ERROR_DDS_NO_DS_AVAILABLE
20070

The DHCP server could not contact Active Directory.

ERROR_DDS_NO_DHCP_ROOT
20071

The DHCP service root could not be found in Active Directory.

ERROR_DDS_UNEXPECTED_ERROR
20072

An unexpected error occurred while accessing Active Directory.

ERROR_DDS_TOO_MANY_ERRORS
20073

There were too many errors to proceed.

ERROR_DDS_DHCP_SERVER_NOT_FOUND
20074

A DHCP service could not be found.

ERROR_DDS_OPTION_ALREADY_EXISTS
20075

The specified DHCP options are already present in Active Directory.

ERROR_DDS_OPTION_DOES_NOT_EXIST
20076

The specified DHCP options are not present in Active Directory.

ERROR_DDS_CLASS_EXISTS
20077

The specified DHCP classes are already present in Active Directory.

ERROR_DDS_CLASS_DOES_NOT_EXIST
20078

The specified DHCP classes are not present in Active Directory.

ERROR_DDS_SERVER_ALREADY_EXISTS
20079

The specified DHCP servers are already present in Active Directory.

ERROR_DDS_SERVER_DOES_NOT_EXIST
20080

The specified DHCP servers are not present in Active Directory.

ERROR_DDS_SERVER_ADDRESS_MISMATCH
20081

The specified DHCP server address does not correspond to the identified DHCP server name.

ERROR_DDS_SUBNET_EXISTS
20082

The specified subnets are already present in Active Directory.

ERROR_DDS_SUBNET_HAS_DIFF_SUPER_SCOPE
20083

The specified subnet belongs to a different superscope.

ERROR_DDS_SUBNET_NOT_PRESENT
20084

The specified subnet is not present in Active Directory.

ERROR_DDS_RESERVATION_NOT_PRESENT
20085

The specified reservation is not present in Active Directory.

ERROR_DDS_RESERVATION_CONFLICT
20086

The specified reservation conflicts with another reservation present in Active Directory.

ERROR_DDS_POSSIBLE_RANGE_CONFLICT
20087

The specified IP address range conflicts with another IP range present in Active Directory.

ERROR_DDS_RANGE_DOES_NOT_EXIST
20088

The specified IP address range is not present in Active Directory.

ERROR_DHCP_DELETE_BUILTIN_CLASS
20089

Windows 7 or later: This class cannot be deleted.

ERROR_DHCP_INVALID_SUBNET_PREFIX
20091

Windows 7 or later: The given subnet prefix is invalid. It represents either a non-unicast or link local address range.

ERROR_DHCP_INVALID_DELAY
20092

Windows 7 or later: The given delay value is invalid. The valid value is from 0 to 1000.

ERROR_DHCP_LINKLAYER_ADDRESS_EXISTS
20093

Windows 7 or later: Address or Address pattern is already contained in one of the list.

ERROR_DHCP_LINKLAYER_ADDRESS_RESERVATION_EXISTS
20094

Windows 7 or later: Address to be added to Deny list or to be deleted from allow list, has an associated reservation.

ERROR_DHCP_LINKLAYER_ADDRESS_DOES_NOT_EXIST
20095

Windows 7 or later: Address or Address pattern is not contained in either list.

ERROR_DHCP_HARDWARE_ADDRESS_TYPE_ALREADY_EXEMPT
20101

Windows 7 or later: This Hardware Type is already exempt.

ERROR_DHCP_UNDEFINED_HARDWARE_ADDRESS_TYPE
20102

Windows 7 or later: You are trying to delete an undefined Hardware Type.

ERROR_DHCP_OPTION_TYPE_MISMATCH
20103

Windows 7 or later: Conflict in types for the same option on Host and Added DHCP Servers.

ERROR_DHCP_POLICY_BAD_PARENT_EXPR
20104

Windows 8 or later: The parent expression specified does not exist.

ERROR_DHCP_POLICY_EXISTS
20105

Windows 8 or later: The DHCP server policy already exists.

ERROR_DHCP_POLICY_RANGE_EXISTS
20106

Windows 8 or later: The DHCP server policy range specified already exists in the given scope.

ERROR_DHCP_POLICY_RANGE_BAD
20107

Windows 8 or later: The DHCP server policy range specified is invalid or does not match the given subnet.

ERROR_DHCP_RANGE_INVALID_IN_SERVER_POLICY
20108

Windows 8 or later: DHCP server policy ranges can only be added to scope level policies.

ERROR_DHCP_INVALID_POLICY_EXPRESSION
20109

Windows 8 or later: The DHCP server policy contains an invalid expression.

ERROR_DHCP_INVALID_PROCESSING_ORDER
20110

Windows 8 or later: The processing order specified for the DHCP server policy is invalid.

ERROR_DHCP_POLICY_NOT_FOUND
20111

Windows 8 or later: The DHCP server policy was not found.

ERROR_SCOPE_RANGE_POLICY_RANGE_CONFLICT
20112

Windows 8 or later: There is an IP address range configured for a policy in this scope. This operation on the scope IP address range cannot be performed until the policy IP address range is suitably modified. Please change the IP address range of the policy before performing this operation.

ERROR_DHCP_FO_SCOPE_ALREADY_IN_RELATIONSHIP
20113

Windows 8 or later: The DHCP scope is already in a failover relationship.

ERROR_DHCP_FO_RELATIONSHIP_EXISTS
20114

Windows 8 or later: The DHCP failover relationship already exists.

ERROR_DHCP_FO_RELATIONSHIP_DOES_NOT_EXIST
20115

Windows 8 or later: The DHCP failover relationship does not exist.

ERROR_DHCP_FO_SCOPE_NOT_IN_RELATIONSHIP
20116

Windows 8 or later: The DHCP scope is not part of a failover relationship.

ERROR_DHCP_FO_RELATION_IS_SECONDARY
20117

Windows 8 or later: The DHCP failover relationship is a secondary.

ERROR_DHCP_FO_NOT_SUPPORTED
20118

Windows 8 or later: The DHCP failover is not supported.

ERROR_DHCP_FO_TIME_OUT_OF_SYNC
20119

Windows 8 or later: The DHCP servers in the failover relationship have timed out of synchronization.

ERROR_DHCP_FO_STATE_NOT_NORMAL
20120

Windows 8 or later: The DHCP failover relationship state is not NORMAL.

ERROR_DHCP_NO_ADMIN_PERMISSION
20121

Windows 8 or later: The user does not have administrative permissions for the DHCP server.

ERROR_DHCP_SERVER_NOT_REACHABLE
20122

Windows 8 or later: The specified DHCP server is not reachable. Please provide a DHCP server that is reachable.

ERROR_DHCP_SERVER_NOT_RUNNING
20123

Windows 8 or later: The DHCP Server Service is not running on the specified server. Please ensure that the DHCP Server service is running on the specified computer.

ERROR_DHCP_SERVER_NAME_NOT_RESOLVED
20124

Windows 8 or later: Unable to resolve DNS name.

ERROR_DHCP_FO_RELATIONSHIP_NAME_TOO_LONG
20125

Windows 8 or later: The specified DHCP failover relationship name is too long. The name is limited to a maximum of 126 characters.

ERROR_DHCP_REACHED_END_OF_SELECTION
20126

Windows 8 or later: The specified DHCP Server has reached the end of the selected range while finding the free IP address.

ERROR_DHCP_FO_ADDSCOPE_LEASES_NOT_SYNCED
20127

Windows 8 or later: The synchronization of leases in the scopes being added to the failover relationship failed.

ERROR_DHCP_FO_MAX_RELATIONSHIPS
20128

Windows 8 or later: The relationship cannot be created on the DHCP server as the maximum number of allowed relationship has been exceeded.

ERROR_DHCP_FO_IPRANGE_TYPE_CONV_ILLEGAL
20129

Windows 8 or later: A Scope configured for failover cannot be changed to type BOOTP or BOTH.

ERROR_DHCP_FO_MAX_ADD_SCOPES
20130

Windows 8 or later: The number of scopes being added to the failover relationship exceeds the max number of scopes which can be added to a failover relationship at one time.

ERROR_DHCP_FO_BOOT_NOT_SUPPORTED
20131

Windows 8 or later: A scope supporting BOOTP clients cannot be added to a failover relationship.

ERROR_DHCP_FO_RANGE_PART_OF_REL
20132

Windows 8 or later: An IP address range of a scope which is part of a failover relationship cannot be deleted. The scope will need to be removed from the failover relationship before deleting the range.

Requirements

Header

Dhcpsapi.h

 

 

Show: