Mingw included in Qt installator including old .h files?
Hello!
I'm trying to use the Windows API function "QueryFullProcessImageName" that, in accordance to its manual in Windows MSDN, is present since Windows Vista and should be declared in winbase.h.
Now the problem is that the winbase.h that Mingw considers when building my softwares in Qt/QtCreator seems to be quite old, for it doesn't include QueryFullProcessImageName as parts of its functions.
So my questions are:
1º: is my interpretation correct? Does the Mingw include .h files that comes with the installation of QtCreator are old?
2º: how can I solve this problem? I already updated my Qt Creator and Sources and the problem persists.
Thanks,
Momergil
Re: Mingw included in Qt installator including old .h files?
You have to define which version of the API you want to use prior to including winapi files. In doubt consult MinGW docs or ask at a MinGW forum.
Re: Mingw included in Qt installator including old .h files?
Quote:
Originally Posted by
wysota
You have to define which version of the API you want to use prior to including winapi files. In doubt consult MinGW docs or ask at a MinGW forum.
You mean
Code:
#define WINVER 0x0500
#define _WIN32_WINNT 0x0600
#include "windows.h"
#include <psapi.h>
#include "reason.h"
? If so, I already did that. Note: when I sad the winbase.h don't include this function, I mentioned it as result of Ctrl+F searching.
About the forums and docs, well I guess I'll do that, but isn't this still a QtCreator problem? I mean, when the installator proposes to install MingW as compiler to be used by QtCreator one would expect that Nokia/Digia would include the lastest version of the compiler, not some version with includes at least 4 years old and un-updated.