Dynamic Host Configuration Protocol
The Dynamic Host Configuration Protocol (DHCP) Application Programming Interface, also referred to as DHCP Client Options, enables Windows 2000 and Windows 98 clients to query specific options from DHCP servers. Such capability enables vendor-specific options exposed through DHCP servers to be queried by Windows 2000 or Windows 98 DHCP clients. This documentation refers to the most recent version of the DHCP API, version 2.
Programmers using the DHCP API should note the following:
- The adapter name being passed in DHCP functions should be the adapter GUID for the routine.
- The class ID parameter in DHCP functions is the binary class ID information to pass in the DHCP INFORM packet through use of the USER CLASS option.
- The AdapterName parameter exists on Windows 98, but it refers to the adapter index (converted to a string) rather than the adapter name itself. This is necessary because Windows 98 does not have the Windows 2000 equivalent notion of adapter names.
- DHCP functions are exposed through Dhcpcsvc.dll.