C# Class NMaier.SimpleDlna.GUI.StartupUtilities

Inheritance: IDisposable
ファイルを表示 Open project: nmaier/simpleDLNA Class Usage Examples

Public Methods

Method Description
CheckIfRunAtWinBoot ( string name ) : bool

Checks for autorun registry entry

Dispose ( ) : void
InstallAutoRun ( string name ) : void

Sets application to run at windows boot, using an name as the registry key name, current executable path

InstallAutoRun ( string name, string path ) : void

Sets application to run at windows boot, using an name as the registry key name, and any supplied path

StartupUtilities ( StartupUserScope userScope ) : System
UninstallAutoRun ( string name ) : void

Method Details

CheckIfRunAtWinBoot() public method

Checks for autorun registry entry
public CheckIfRunAtWinBoot ( string name ) : bool
name string "key" to search for in startup registry
return bool

Dispose() public method

public Dispose ( ) : void
return void

InstallAutoRun() public method

Sets application to run at windows boot, using an name as the registry key name, current executable path
public InstallAutoRun ( string name ) : void
name string Name the startup key will use, should be unique
return void

InstallAutoRun() public method

Sets application to run at windows boot, using an name as the registry key name, and any supplied path
public InstallAutoRun ( string name, string path ) : void
name string Name the startup key will use, should be unique
path string Path to the executable to run
return void

StartupUtilities() public method

public StartupUtilities ( StartupUserScope userScope ) : System
userScope StartupUserScope
return System

UninstallAutoRun() public method

public UninstallAutoRun ( string name ) : void
name string
return void