/// <summary> Unregisters the current process from starting with Windows. </summary> /// <param name="applicationName"> Name of the application. </param> /// <param name="applyToAllUsers"> <c>true</c> to unregister for all users, <c>false</c> to /// unregister for the current user only. </param> public static void UnregisterStartupApplication(string applicationName, bool applyToAllUsers) { StartupManager.RegisterStartupApplicationImpl(applicationName, null, false, applyToAllUsers); }
/// <summary> Registers the specifies application to start with Windows. </summary> /// <param name="applicationName"> Name of the application. </param> /// <param name="program"> The program. </param> /// <param name="applyToAllUsers"> <c>true</c> to register for all users, <c>false</c> to /// register for the current user only. </param> public static void RegisterStartupApplication(string applicationName, string program, bool applyToAllUsers) { StartupManager.RegisterStartupApplicationImpl(applicationName, program, true, applyToAllUsers); }