I am currently running Windows Vista Servicepack1 amd I am using C-Free4.1 compiler.
plz check the C code...
# include <stdio.h>
# include <windows.h>
# include <winreg.h>
main()
{
HKEY hkey;
RegOpenKeyExA(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_ALL_ACCESS,&hkey);
RegSetValueExA(HKEY_LOCAL_MACHINE,"Testing",0,REG_SZ,"HELLO",5) ;
RegCloseKey(HKEY_LOCAL_MACHINE);
}
Plz help me with this code or suggest me some good codes in C for registry editing in vista. when I am compiling it i am getting no errors and no warnings. but in registry I can't find the value "Testing". plz help me in registry programming... thanks in advance ......