Code: Alles auswählen
If RegCreateKeyEx_(#HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", 0, 0, #REG_OPTION_NON_VOLATILE, #KEY_ALL_ACCESS, 0, @NewKey, @KeyInfo) = #ERROR_SUCCESS
StringBuffer$ = Path ; change Path to a string with the full path to your program!!!
RegSetValueEx_(NewKey, "Programname", 0, #REG_SZ, StringBuffer$, Len(StringBuffer$)+1) ; change "Programname" to your individual name
RegCloseKey_(NewKey)
EndIf
Ist es auch möglich das Programm so zu starten das es als SYSTEM-Programm gekennzeichnet ist? (Zum Beispiel im Taskmanager), oder hängt das von anderne Faktoren ab?