I\'m using Qt with mingw to write a program that changes the registry, but when I call :
RegOpenKeyEx(HKEY_LOCAL_MACHINE, \"SOFTWARE\\\\Microsof
You have to define the _WIN32_WINNT (not _WIN32_WINNT_WIN7) before including the windows.h header:
_WIN32_WINNT
windows.h
#ifndef _WIN32_WINNT #define _WIN32_WINNT (0x0601) #endif /* _WIN32_WINNT */ #include <windows.h>