int eth32cfg_plugin_load(int option);
This function loads one of the pre-defined plugins. The currently-loaded plugin affects the entire process in terms of the Configuration and Detection functionality, but does not affect the main functionality of the API. See the Plugins topic for more information.
option - The plugin to be loaded. This can be one of the following options:
ETH32CFG_PLUG_NONE - No plugin loaded. This is the default if Load is never called. If another plugin is loaded, calling Load with this option will remove the loaded plugin.
ETH32CFG_PLUG_SYS - System plugin. The Windows API is used to provide information about the network interfaces on the PC. Using this plugin does not affect how queries are sent out or how responses are received.
ETH32CFG_PLUG_PCAP - WinPcap plugin. The WinPcap library is used to provide information about the network interfaces as well as to sniff for ETH32 responses on the chosen interface.
This function returns zero on success and a negative error code on failure. Please see the Error Codes section for possible error codes. If a plugin is attempted to be loaded that is not present on the system, an ETH_NOT_SUPPORTED error will be returned.
When one plugin (other than NONE) has been loaded and any interface list handles returned by eth32cfg_plugin_interface_list are open, you must make sure that the eth32cfg_plugin_interface_list_free function is called for each of them before changing the plugin with this function. This is due to the fact that the loaded plugin affects the entire process, so it is up to you as the programmer to ensure that any open interface lists are freed before changing the plugin.