hAdp parameter is not the HNAdapter object handle.
Description:
Use the AdpCloseAdapter function to close the network adapter opened by
AdpOpenAdapter.
AdpCloseAdapter function frees the OS resources, provided for the opened network adapter and stops the
corresponding thread inside the HNAdapter component.
While processing traffic by HNQueue component (see ReceiveQueue
[Get/Set])
you should remember that
HNQueue object can be deleted only after calling
AdpCloseAdapter, otherwise an early
HNQueue object deletion will lead to the application crash.