Strange errors with windows 8.1 SDK

I installed VS 2013 and after converting my project precompiled with VS 2012 and winSDK 8.0 (or 7.1 not sure), now I tried to compile it with VS 2013 and winSDK 8.1 and received the following errors:

C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ um \ winnt.h (1308): error C2146: syntax error: missing ';' before the identifier 'EXCEPTION_DISPOSITION' 1> C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ um \ winnt.h (1308): error C4430: missing type specifier - suggested int. Note: C ++ does not support default-int 1> C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ um \ winnt.h (1316): error C2143: syntax error: missing ';' before '*'

The list goes on ... I also tried some other projects and got the same errors.

EDIT

It seems my winsdk 8.1 is corrupted or something, because it shows these errors as soon as I turn on # windows.h.

#include <Windows.h>


BOOL APIENTRY DllMain(HMODULE hModule,
    DWORD  ul_reason_for_call,
    LPVOID lpReserved
    )
{
}
+3
source share

All Articles