Error with RegOpenKeyEx()

前端 未结 1 407
囚心锁ツ
囚心锁ツ 2021-01-19 14:22

I\'m using Qt with mingw to write a program that changes the registry, but when I call :

RegOpenKeyEx(HKEY_LOCAL_MACHINE,
             \"SOFTWARE\\\\Microsof         


        
相关标签:
1条回答
  • 2021-01-19 14:28

    You have to define the _WIN32_WINNT (not _WIN32_WINNT_WIN7) before including the windows.h header:

    #ifndef _WIN32_WINNT
    #define _WIN32_WINNT (0x0601)
    #endif  /* _WIN32_WINNT */
    
    #include <windows.h>
    
    0 讨论(0)
提交回复
热议问题