Constants
All constants are accessible through the pcapfilter.Constants class.
Uninstall drivers from previous class versions (e.g., 2022).
Keep the driver's current start type setting in the registry.
If this flag is not set (default), the installation logic will reset the driver's start type setting in the Windows registry to the default value.
Setting this flag causes the installation logic to preserve the current value, which may be necessary if the user (or the application) set it previously.
Install the driver file when its version and build number is the same as the version of the already installed driver.
The packet is dropped (discarded).
The packet is captured with the possibility to modify it in the event handler.
The Packet event is fired for captured packets with an option to modify the packet contents and send the modified packet.
The driver asynchronously notifies about the packet, not taking any specific action in regard to it.
The NotifyPacket event is fired for captured packets.
All packets are processed.
Incoming packets are processed.
Outgoing packets are processed.
Capture mode.
Individual packets are reported through the Packet event as they are received from the network driver. Only packets that match the filter criteria specified in Filter and Direction will trigger the event.
Statistical mode.
The class does not report individual packets. Instead, it will collect packet statistics and provide aggregated packet data via the Statistics event.
Uninstall modules from previous product versions.
Uninstall modules from the current product version.
Uninstall modules from all product versions.
The specified module is not present on the system.
The specified module is in the Stopped state.
The specified module is loaded and running.
Install Flags
INSTALL_REMOVE_OLD_VERSIONS
Value: 0x00000001
INSTALL_KEEP_START_TYPE
Value: 0x00000002
INSTALL_OVERWRITE_SAME_VERSION
Value: 0x00000004
Packet Actions
PACKET_ACTION_DROP
Value: 0x01
PACKET_ACTION_CAPTURE
Value: 0x02
PACKET_ACTION_NOTIFY
Value: 0x03
Packet directions
PACKET_DIRECTION_ANY
Value: 0x00
PACKET_DIRECTION_INCOMING
Value: 0x01
PACKET_DIRECTION_OUTGOING
Value: 0x02
Operation modes
PCAP_MODE_CAPT
Value: 0x00
PCAP_MODE_STAT
Value: 0x01
Uninstall Version Flags
UNINSTALL_VERSION_PREVIOUS
Value: 0x00000001
Note: This functionality is only available in Windows.
UNINSTALL_VERSION_CURRENT
Value: 0x00000002
Note: This functionality is only available in Windows.
UNINSTALL_VERSION_ALL
Value: 0x00000003
Note: This functionality is only available in Windows.
Module Status Flags
MODULE_STATUS_NOT_PRESENT
Value: 0x00000000
Note: This functionality is only available in Windows.
MODULE_STATUS_STOPPED
Value: 0x00000001
Note: This functionality is only available in Windows.
MODULE_STATUS_RUNNING
Value: 0x00000004
Note: This functionality is only available in Windows.