Closed Signum21 closed 3 months ago
Thanks. I had a size bug in FWP_VALUE0 causing the problem. It is fixed and can be found in 4.0.3 (soon to be released) or on the AppVeyor repository as pre-release (see readme).
I would strongly encourage the use of the overload for FwpmFilterEnum0 that tucks the array inside a memory manager.
FwpmFilterEnum0(engineHandle, out SafeFwpmArray<FWPM_FILTER0> h);
foreach (FWPM_FILTER0 e in h)
...
Describe the bug and how to reproduce
I'm enumerating the wfp filters. The name, description and filterKey are correctly extracted but the filterId is 0 for all filters.
What code is involved
Expected behavior
The filterId should be different and not 0 (I confirmed this with another tool).