public class WindowsStartup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WindowsStartup.PSAPI
Process Status API.
|
Constructor and Description |
---|
WindowsStartup() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getModuleFilename()
Returns the currently running process executable name with path.
|
static boolean |
isStartupEnabled(java.lang.String appName)
Checks whether startup is enabled.
|
static void |
setAutostart(java.lang.String appName,
java.lang.String workingDirectory,
boolean isAutoStart)
Creates or deletes registry key for application autostart.
|
public static boolean isStartupEnabled(java.lang.String appName)
appName
- the application name.public static java.lang.String getModuleFilename()
public static void setAutostart(java.lang.String appName, java.lang.String workingDirectory, boolean isAutoStart)
appName
- the application nameworkingDirectory
- the current working directory, normally the
place where the application executable is placed.isAutoStart
- true to create registry key, false
to delete it.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.