public class WinProcesses
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WinProcesses.Info
Class that holds information about running Windows processes.
|
Constructor and Description |
---|
WinProcesses() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areInstalledLaunchersRunning()
Determine if any of the installed launchers are currently running.
|
static boolean |
closeProcesses(int[] processIds,
int timeout)
Tries to close the processes with the given ids by sending a VM_CLOSE message to all visible top-level windows.
|
static WinProcesses.Info[] |
getRunningProcesses()
Get a list of all running processes the installer can see.
|
static java.lang.String |
getWindowTitle(int processId)
Get the title of one of the visible top-level windows of this process.
|
static boolean |
terminateProcesses(int[] processIds)
Terminates the processes with the given ids forcefully.
|
public static WinProcesses.Info[] getRunningProcesses()
public static boolean areInstalledLaunchersRunning()
true
or false
.public static java.lang.String getWindowTitle(int processId)
processId
- the process idpublic static boolean terminateProcesses(int[] processIds)
processIds
- the processes to terminatetrue
if all processes have been terminated.public static boolean closeProcesses(int[] processIds, int timeout)
processIds
- the processes to terminatetimeout
- the maximum time to wait for the processes to terminate after the message has been sent in millisecondstrue
if all processes have been terminated.