From fa9229820cc87b241f86eaec0959592ddb85813b Mon Sep 17 00:00:00 2001
From: basil00
-BOOL WinDivertHelperCheckFilter(
+BOOL WinDivertHelperCompileFilter(
__in const char *filter,
__in WINDIVERT_LAYER layer,
+ __out_opt char *object,
+ __in UINT objLen,
__out_opt const char **errorStr,
__out_opt UINT *errorPos
);
@@ -1461,18 +1463,32 @@ BOOL WinDivertHelperCheckFilter(
Parameters
Return Value
Remarks +The compilation operation will succeed if the given filter string is +valid with respect to the filter language. -If the filter is invalid, then a human readable description of the error is +Otherwise, if the filter is invalid, then a human readable description of +the error is returned by errorStr (if non-NULL), and the error's position is returned by errorPos (if non-NULL). @@ -1486,7 +1502,6 @@ objects, and therefore do not need to be deallocated.
BOOL WinDivertHelperEvalFilter(
__in const char *filter,
- __in WINDIVERT_LAYER layer,
__in PVOID pPacket,
__in UINT packetLen,
__in PWINDIVERT_ADDRESS pAddr
@@ -1498,7 +1513,6 @@ BOOL WinDivertHelperEvalFilter(
Parameters
|