Question

Looking thru the definitions in winnt.h from rubenvb's 4.7.2 download (c++.exe --version is rubenvb-4.7.2-release) reveals a number of routines with inline assembly that simply don't work correctly. At least they don't on my i7 processor (could these have been coded for some other processor?).

However, given the nature of how gcc is developed, it seems possible that some other implementation has done a better job with this file.

So, 2 questions:

  1. Does anyone know where to find a better winnt.h?
  2. Failing that, does anyone know how to contact reubanvb?
Was it helpful?

Solution 2

I have worked with the Mingw-w64 team to update the asm routines in winnt.h (and other headers). To the best of my knowledge, they are all correct now.

OTHER TIPS

The Windows SDK is a free download. You can get the one for Windows 8 here, or use this one to stick with targeting Windows 7. Naturally, it includes all of the headers necessary to call Windows functions, including WinNT.h.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top