Error including fwpmu.h in Visual Studio 2010

I am trying to call some WFP functions from the C ++ CLR class library (New Project -> Visual C ++ -> CLR -> Class Library)

the code:

#include <windows.h>
#include <fwpmu.h>
#pragma comment (lib, "fwpuclnt.lib")

With this alone, many files from the Windows SDK cannot be compiled. What am I missing?

Example:

Error 12 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (program files)\microsoft sdks\windows\v7.0a\include\fwptypes.h 336 1 testlib

Edit:

I found a solution, this is an error in some header files: http://social.msdn.microsoft.com/Forums/en/wfp/thread/8fd93a3d-a794-4233-9ff7-09b89eed6b1f

And the conflict between the CLR and another header: http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/92c473d6-c963-44fa-9150-6c6af502112b

+3
source share
2 answers
+1
source

, , , , . Visual Studio, , .

, , : Windows SDK 8.0. - C:\Program Files (x86)\Windows Kits\8.0\Include\um, . SDK Windows (8.1 10), , .

, , , , ++ , Include Directories , 8.0 . , , , , -, - - 8.0 SDK .

, - , - .

0

All Articles