Packet Sniffer SDK DLL Edition

HNLBAdapter :: Events :: LbAdpSetOnConnect

 Previous Next

Sets the address and the parameter value for the OnConnect event handler (see HNFN_LBCONNECT).

Syntax:

FARPROC __stdcall LbAdpSetOnConnect(HANDLE hLbAdp, FARPROC pfOnConnect, DWORD_PTR Param);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

pfOnConnect

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

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 pfOnConnect parameter.

Description:

Use LbAdpSetOnConnect to set the address and the parameter value for the OnConnect event handler. OnConnect event handler is called by HNLBAdapter component when an application connects to a remote server, or a remote server connects application.

See also:HNLBAdapter, HNFN_LBCONNECT