Skip to content

PCAP.Capture.MinMemoryToCopy

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

PCAP.Capture.MinMemoryToCopy

Property declaration

 Dim MinMemoryToCopy As Integer

Remarks

Changes the minimum amount of data in the driver's kernel-mode buffer needed to make ReadNext return a packet. If the buffer is large then the driver must wait for the arrival of several packets before copying the data to the user-mode app. This guarantees a low number of system calls (i.e. low processor usage) and is a good setting for background services and daemons. On the other hand if the buffer is small then the driver will copy the packets as soon as the user-mode app is ready to receive them. This is useful for GUI applications that need the best responsiveness from the driver.

The default value is 16000 bytes, which is a reasonable middle ground.

Clone this wiki locally