Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Properties :: AdpCfgGetDhcpState

 Previous Next

Returns the status of the DHCP using.

Syntax:

BOOL __stdcall AdpCfgGetDhcpState(HANDLE hCfg);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

Return values:

If the function succeeds the return value will be the status of the DHCP using.

Description:

If AdpCfgGetDhcpState returns TRUE, then DHCP protocol is used by the system to get IP protocol settings dynamically. If AdpCfgGetDhcpState returns FALSE, then the system uses static IP protocol settings.

Use AdpCfgGetDhcpState to obtain the current DHCP protocol using status in the system IP protocol settings.

See also:HNAdapterConfig