Package com.sun.jna.platform.win32
Klasse PsapiUtil
java.lang.Object
com.sun.jna.platform.win32.PsapiUtil
Psapi utility API.
- Autor:
- Torbjörn Svensson, azoff[at]svenskalinuxforeningen.se
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic int[]
Retrieves the process identifier for each process object in the system.static String
GetProcessImageFileName
(WinNT.HANDLE hProcess) Retrieves the name of the executable file for the specified process.
-
Konstruktordetails
-
PsapiUtil
public PsapiUtil()
-
-
Methodendetails
-
enumProcesses
public static int[] enumProcesses()Retrieves the process identifier for each process object in the system.- Gibt zurück:
- Array of pids
-
GetProcessImageFileName
Retrieves the name of the executable file for the specified process.- Parameter:
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.
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.- Gibt zurück:
- ame of the executable file for the specified process.
- Löst aus:
Win32Exception
- in case an error occurs- Siehe auch:
-