TCPIP_DHCP_InfoGet Function

C

bool TCPIP_DHCP_InfoGet(
    TCPIP_NET_HANDLE hNet, 
    TCPIP_DHCP_INFO* pDhcpInfo
);

Description

This function returns the current state and lease info of the DHCP client on the specified interface.

Preconditions

DHCP module must be initialized.

Parameters

ParametersDescription
hNetInterface to query.
pDhcpInfoStorage to return the DHCP info. Could be NULL if not needed.

Returns

  • True - If the interface is enabled and exists and the DHCP client service is enabled on that interface and a lease is acquired.

  • False - Otherwise.

Remarks

None.