Error with RegOpenKeyEx

前端 未结 1 1819
别那么骄傲
别那么骄傲 2021-01-22 14:26

I\'m using Code::blocks to write a program that changes the registry, but when I call

RegOpenKeyEx (HKEY_LOCAL_MACHINE,
              \"SOFTWARE\\\\Microsoft\\\\         


        
相关标签:
1条回答
  • 2021-01-22 15:02

    You need to define a Windows target version of XP or greater to have access to this. You are probably targeting Windows 2000.

    In targetver.h (or wherever you define _WIN32_WINNT) you need this:

    #define _WIN32_WINNT 0x0501 //targets XP or later
    
    0 讨论(0)
提交回复
热议问题