I\'m using Code::blocks to write a program that changes the registry, but when I call
RegOpenKeyEx (HKEY_LOCAL_MACHINE, \"SOFTWARE\\\\Microsoft\\\\
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:
_WIN32_WINNT
#define _WIN32_WINNT 0x0501 //targets XP or later