I am Very New to Windows Filtering Platform.. I am trying learn this.. I started with msdn website's code.. as here . I tried to compile the code and I got 13 errors which were in header file "fwptypes.h" . I dont know how to resolve this .. Any Suggestion.. Here is the error IMG
Windows Filtering Platform error
1.2k views Asked by progrrammer At
2
There are 2 answers
0
On
You can use WinDivert open source WFP callout driver .
WinDivert essentially passes the packets to the underlying Windows Filtering Platform (WFP) packet injection functions.
check out this link for more information .. http://reqrypt.org/windivert.html
For eliminating the first error (precompiled header), there are three ways:
Or 2. Copying the demo code into a header file instead of cpp file.
Or 3. Add "stdafx.h" in front of demo code.
For other compile errors, try this (this solution comes from http://social.msdn.microsoft.com/Forums/en-US/wfp/thread/8fd93a3d-a794-4233-9ff7-09b89eed6b1f, I tested, it works):
There is a bug in the header files (extra line spaces). You can modify your copies directly:
FwpTypes.h @ line 275:
FwpTypes.h @ line 343
IkeTypes.h @ line 367