using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
///
/// Windows launch entry as returned by app.getLoginItemSettings().launchItems.
///
/// Up-to-date with Electron API 39.2
[SupportedOSPlatform("windows")]
public class LoginItemLaunchItem
{
///
/// Name value of a registry entry.
///
public string Name { get; set; }
///
/// The executable to an app that corresponds to a registry entry.
///
public string Path { get; set; }
///
/// The command-line arguments to pass to the executable.
///
public string[] Args { get; set; }
///
/// One of user or machine. Indicates whether the registry entry is under HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE.
///
public string Scope { get; set; }
///
/// True if the app registry key is startup approved and therefore shows as enabled in Task Manager and Windows settings.
///
public bool Enabled { get; set; }
}
}