views:

59

answers:

0

I'm trying to write a application for fun, and to learn more about the registry and start up items. Its a Windows log on replacement, the way i see it is that the typical windows log on user name/password is stored in the registry... there for crackable BUT! By making a application that starts immediately after the welcome screen that prompts for a user name and password that is predefined within the application isn't as easily cracked. I got it to load up fine, what it does is kill explorer via "taskkill", "/F /IM explorer.exe" and i have something put in that changes registry keys to disable the task manager until log in. but the problem i'm faced with is: when logged into safe mode the application doesn't start! so in short my question is:

i use this to add the application to start up:

                RegistryKey Startup = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce", true);

                Startup.SetValue(Application.ProductName, Application.ExecutablePath);

how can i have it start up in safe mode as well?