VS2012 + WDM compilation issues Vmprotect 2.12

VMProtectDDK.h (23): error C2143: syntax error: Missing “{” (“" in front)
VMProtectDDK.h (23): error C2143: syntax error: missing “)” ("
” in front of)
VMProtectDDK.h (23): error C2059: syntax error: “)”
VMProtectDDK.h (23): warning C4218: use of non-standard extensions: must specify at least a storage class or a type

Commented out:
__declspec (dllimport) wchar_t * __ stdcall VMProtectDecryptStringW (wchar_t * value);
Before you can compile successfully

We recommend use DDK instead of VS for build your driver. Anyway I have not any problems for build drivers in VS2010.

P.S. Check the option “Treat WChar_t As Build in Type” in your VS project options (Project → Properties → Configuration Properties → C/C++ → Language). It must have “Yes (/Zc:wchar_t)” value.

Hope this helps.

With this option:

/Zc:wchar_t

But the compiler cannot succeed.

Microsoft new WDK 8 must use VS2012 to compile.