Package com.sun.jna.platform.win32
Class PsapiUtil
java.lang.Object
com.sun.jna.platform.win32.PsapiUtil
Psapi utility API.
- Author:
- Torbjörn Svensson, azoff[at]svenskalinuxforeningen.se
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic int[]Retrieves the process identifier for each process object in the system.static StringGetProcessImageFileName(WinNT.HANDLE hProcess) Retrieves the name of the executable file for the specified process.
- 
Constructor Details- 
PsapiUtilpublic PsapiUtil()
 
- 
- 
Method Details- 
enumProcessespublic static int[] enumProcesses()Retrieves the process identifier for each process object in the system.- Returns:
- Array of pids
 
- 
GetProcessImageFileNameRetrieves the name of the executable file for the specified process.- Parameters:
- 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.
- Returns:
- ame of the executable file for the specified process.
- Throws:
- Win32Exception- in case an error occurs
- See Also:
 
 
-