Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Methods :: AdpCfgUpdate

 Previous Next

Updates the network adapter configuration.

Syntax:

DWORD __stdcall AdpCfgUpdate(HANDLE hCfg, DWORD ChangeType);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

ChangeType

[in] The type of the network adapter settings to be updated as they are defined in the HNAdapterConfigChange enumeration.

Return values:

HNERR_OKNo errors.
HNERR_REG_OPEN_ERROROS registry reading error.
HNERR_INVALID_HANDLEHNAdapterConfig handle has been created with an error.

Description:

Use this function to update the settings of the network adapter described by the HNAdapterConfig object. When this function succeeds, the OnConfigChange event handler is called.

See also:HNAdapterConfig, HNAdapterConfigChange, OnConfigChange