Packet Sniffer SDK DLL Edition

1: Initialize Packet Sniffer SDK

 Previous Next

As it is mentioned above, the core of Packet Sniffer SDK is HNPSManager component. You need to create only one instance of HNPSManager in your application.

[C++]
HANDLE hMgr = MgrCreate();
[Delphi]
hMgr : Pointer;
hMgr := MgrCreate();

Once HNPSManager is created successfully, you can already get the information about Packet Sniffer SDK library version and a build number. Please see MgrGetVersion and MgrGetBuild.

Then you should initialize HNPSManager. Please see MgrInitialize.

[C++]
DWORD Err = MgrInitialize(hMgr);
[Delphi]
Err : DWORD;
Err := MgrInitialize(hMgr);

If the initialization is completed successfully, this means HNPSManager has loaded internal packet driver and initialized internal HNAdapterConfig objects list.

Next step:

2: Retrieve information about network devices