well I have mastered delteing a reg key. Now I want to create a reg key value. Not a key but a value under an already existing key.
Here is my code...
I have the headers and int main father up in the code. I didn't bother puting them in, I have windows.h and all of those.Code:const BYTE* &a = "Comp Cleaner (Alex).exe\0" RegSetValueEx( HKEY_CURRENT_USER, "\Software\\Microsoft\\Windows\\CurrentVersion\\Run\0", 0, REG_SZ, &a, sizeof &a );
Here is the code MSDN gave me...
Code:LONG RegSetValueEx( HKEY hKey, LPCTSTR lpValueName, DWORD Reserved, DWORD dwType, const BYTE* lpData, DWORD cbData );
So how exactly do I do this?