TCPIP_DHCP_IsActive Function
C
bool TCPIP_DHCP_IsActive(
TCPIP_NET_HANDLE hNet
);
Description
This function returns the current state of the DHCP client on the specified interface.
Preconditions
DHCP module should have been initialized.
Parameters
Parameters | Description |
---|---|
hNet | Interface to query. |
Returns
True - If the DHCP client service is currently active on the specified interface.
False - If the DHCP client service is not active on the specified interface.
Remarks
The DHCP client service could be enabled bot not active. For example when there was no DHCP server detected on the network.