Hey, i wish to make a program that changes the registry. I want "Shell" in "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon" to have the value "". when i try to compile this code
#include <iostream>
#include <Windows.h>
using namespace std;
int main(){
HKEY hKey;
RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon",
0, KEY_WRITE, &hKey);
RegSetValueEx(hKey, "Shell", 0, REG_DWORD,
reinterpret_cast<BYTE *>(&""), sizeof(""));
RegCloseKey(hKey);
return 0;
}
i get
/out:reg.exe
reg.obj
reg.obj : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _main
reg.obj : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function _main
reg.obj : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _main
reg.exe : fatal error LNK1120: 3 unresolved