public abstract class PsapiUtil
extends java.lang.Object
Constructor and Description |
---|
PsapiUtil() |
Modifier and Type | Method and Description |
---|---|
static int[] |
enumProcesses()
Retrieves the process identifier for each process object in the system.
|
static java.lang.String |
GetProcessImageFileName(WinNT.HANDLE hProcess)
Retrieves the name of the executable file for the specified process.
|
public static int[] enumProcesses()
public static java.lang.String GetProcessImageFileName(WinNT.HANDLE hProcess)
hProcess
- A handle to the process. The handle must have the
PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION
access right. For more information, see Process Security and
Access Rights. Win32Exception
- in case an error occurs