Packet Sniffer SDK VCL Edition

HNPSManager :: Methods :: Initialize

 Previous Next

Initializes Packet Sniffer SDK library.

Syntax:

function Initialize: DWORD;

Return values:

HNERR_OKPacket Sniffer SDK initialization completed successfully.
HNERR_WRONG_OSPacket Sniffer SDK does not support this OS version.
HNERR_DRIVER_NOT_LOADEDPacket Sniffer SDK internal driver loading error
HNERR_CONTROL_NOT_OPENEDControl device opening error.
HNERR_REG_OPEN_ERROROS registry reading error.

Description:

To start working with the Packet Sniffer SDK call Initialize method to initialize it. This method dynamically loads Packet Sniffer SDK internal driver.

On initializing Packet Sniffer SDK successfully HNPSManager object creates an internal list of HNAdapterConfig objects.

Each HNAdapterConfig object contains the information about the corresponding network adapter installed on the system. To gain access to HNAdapterConfig objects please use the AdaptersCfgCount property, and Get_FirstAdapterCfg and Get_NextAdapterCfg methods.

Also, if you set an OnConfigChange event handler before Initialize method is called, it will be convenient to process information concerning every network adapter using HNAdapterConfig object.

See also:HNPSManager, Constructor, AdaptersCfgCount, HNAdapterConfig, Get_FirstAdapterCfg, Get_NextAdapterCfg, OnConfigChange