Packet Sniffer SDK DLL Edition

HNPSManager :: Events :: MgrSetOnConfigChange

 Previous Next

Sets the address and the parameter value for the OnConfigChange event handler (see HNFN_CFGCHANGE).

Syntax:

FARPROC __stdcall MgrSetOnConfigChange(HANDLE hMgr, FARPROC pfOnConfigChange, DWORD_PTR Param);

Parameters:

hMgr

[in] HNPSManager object handle.

pfOnConfigChange

[in] Event handler function address. This function must be declared as HNFN_CFGCHANGE.

Param

[in] Event handler parameter. This parameter is sent to the event handler each time it is called.

Return values:

If the function succeeds the return value will be the value of the pfOnConfigChange parameter.

Description:

Use MgrSetOnConfigChange to set the address and the parameter value for the OnConfigChange event handler. This event handler is called on the MgrInitialize, MgrRefreshAdapterList, and AdpCfgUpdate functions calls.

See also:HNPSManager, HNFN_CFGCHANGE, MgrInitialize, MgrRefreshAdapterList, AdpCfgUpdate