Constants

All constants are accessible through the cbpconstants unit.

Install Flags

INSTALL_REMOVE_OLD_VERSIONS
Value: 0x00000001
Uninstall drivers and helper DLLs from previous component versions (e.g., 2017). NOTE: This functionality is only available in Windows. This flag does not remove the old PnP driver (VPnpBus) from the system because that driver is not versioned. Use the installer DLL of the old version and its Uninstall() function if you need to uninstall the PnP driver.
INSTALL_KEEP_START_TYPE
Value: 0x00000002
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 itself) set it previously.

NOTE: This functionality is only available in Windows.

INSTALL_OVERWRITE_SAME_VERSION
Value: 0x00000004
Install files when their version is the same as the version of already installed files. If this flag is not set (default), the installation logic will overwrite the existing file only if the version number of the file being installed is larger than the version of the file being overwritten. Setting this flag causes the installation logic to overwrite the file even when it has the same version.

NOTE: This functionality is only available in Windows.

INSTALL_FORCE_APP_PERMISSION_CHECK
Value: 0x00020000
Whether the driver should require the controller process to have elevated or system privileges. If this flag is set, the driver will verify that the controller process is a system service or is running with elevated privileges anytime a rule-related operation is performed. If the controller process does not meet these requirements, the operation will be denied.

After installation, the effects of this flag can be changed using the ForceAppPermissionCheck configuration setting.

Packet Rule Actions

RULE_ACTION_DROP
Value: 0x01
The packet is dropped (discarded).
RULE_ACTION_CAPTURE
Value: 0x02
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.
RULE_ACTION_NOTIFY
Value: 0x03
The driver asynchronously notifies about the packet, not taking any specific action in regard to it. The NotifyPacket event is fired for captured packets.

Packet Event Actions

PACKET_ACTION_DROP
Value: 0x01
The packet should be dropped (discarded).
PACKET_ACTION_SEND
Value: 0x02
The packet should be sent further.
PACKET_ACTION_SEND_MODIFIED
Value: 0x03
The packet has been modified and the modified variant should be sent. The Buffer parameter of the Packet event contains modified data that should be sent instead of the original packet.

Packet directions

PACKET_DIRECTION_OUTGOING
Value: 0x00
Outgoing packets are processed. In the events, indicates that the packet is outgoing.
PACKET_DIRECTION_INCOMING
Value: 0x01
Incoming packets are processed. In the events, indicates that the packet is incoming.
PACKET_DIRECTION_ANY
Value: 0x02
All packets are processed.

Link types

LINK_ETHERNET
Value: 0x00
The adapter is an Ethernet one.
LINK_LOOPBACK
Value: 0x01
The adapter is a localhost loopback

Packet types

DLT_RAW
Value: 12
An IP packet. The type (v4 or v6) of the packet is not defined.
DLT_IPV4
Value: 228
An IPv4 packet
DLT_IPV6
Value: 229
An IPv6 packet
DLT_EN10MB
Value: 1
An Ethernet packet

Uninstall Version Flags

UNINSTALL_VERSION_PREVIOUS
Value: 0x00000001
Uninstall modules from previous product versions.
UNINSTALL_VERSION_CURRENT
Value: 0x00000002
Uninstall modules from the current product version.
UNINSTALL_VERSION_ALL
Value: 0x00000003
Uninstall modules from all product versions.

Module Status Flags

MODULE_STATUS_NOT_PRESENT
Value: 0x00000000
The specified module is not present on the system.

MODULE_STATUS_STOPPED
Value: 0x00000001
The specified module is in the Stopped state.

MODULE_STATUS_RUNNING
Value: 0x00000004
The specified module is loaded and running.