public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
findProcessEntry(com.sun.jna.platform.win32.Tlhelp32.PROCESSENTRY32.ByReference processEntry,
String... command)
Finds the given process in the process list
|
static com.sun.jna.platform.win32.WinNT.HANDLE |
getHandleFromProcessEntry(com.sun.jna.platform.win32.Tlhelp32.PROCESSENTRY32.ByReference processEntry)
Gets the handle of a process from the process entry
|
static Process |
startProcess(String... command)
Starts the given command
|
public static com.sun.jna.platform.win32.WinNT.HANDLE getHandleFromProcessEntry(com.sun.jna.platform.win32.Tlhelp32.PROCESSENTRY32.ByReference processEntry)
throws Exception
processEntry - The processEntry to useException - Thrown if the handle cannot be determinedpublic static boolean findProcessEntry(com.sun.jna.platform.win32.Tlhelp32.PROCESSENTRY32.ByReference processEntry,
String... command)
processEntry - The process entrycommand - Commandpublic static Process startProcess(String... command) throws IOException
command - The command to startIOException - something has gone wrongCopyright © 2016. All rights reserved.