/ Published in: C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//nfilename: the path to the application //keyname: the name to appear in the registery void AutoStartRegs(char *nfilename, char *keyname) { HKEY key; RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &key, NULL); RegCloseKey(key); return; }