Hello, I am using some mingw include on Qtcreator but I have a "problem" that is giving me troubles.

for now those are the include (that not from qt) that I use:
#include <setupapi.h>
#include <windows.h>
#include <windef.h>

it happens that when I try to compile I got many error like 'struct' does not name a type in include.h. For example the first errors are 'DWORD' does not name a type in setupapi.h . So I go to the setupapi.h and included the windef.h that is the include that defines this struct, if this was the only error it was fine but I have plenty off errors like this and after sometime (like when I had to include winuser.h in setupapi.h) I solve some errors but got a lot more of them...

There is a way to solve them all or the problem are in the include files?