public interface Psapi
extends com.sun.jna.win32.StdCallLibrary
NativeWrapper
Modifier and Type | Field and Description |
---|---|
static Psapi |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
GetProcessImageFileNameA(com.sun.jna.Pointer hProcess,
com.sun.jna.Pointer pImageFilename,
int nSize)
DWORD WINAPI GetProcessImageFileName(_in HANDLE hProcess, _out LPTSTR lpImageFileName, _in DWORD nSize);
|
static final Psapi INSTANCE
int GetProcessImageFileNameA(com.sun.jna.Pointer hProcess, com.sun.jna.Pointer pImageFilename, int nSize)
Retrieves the name of the executable file for the specified process.
For Windows Server 2008, Windows Vista, Windows Server 2003, & Windows XP/2000
Use the Kernel32 version for later versions of Windows.
hProcess
- [in] A handle to the process. The handle must have the
PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right.
For more information, see MSDN Process Security and Access Rights.
Windows Server 2003 and Windows XP: The handle must have the PROCESS_QUERY_INFORMATION access right.
pImageFileName
- [out] A pointer to a buffer that receives the full path to
the executable file.nSize
- [in] The size of the pImageFileName buffer, in characters.Kernel32.OpenProcess(int, boolean, int)
,
Kernel32.CloseHandle(Pointer)
,
Kernel32.GetProcessImageFileNameA(Pointer, Pointer, int)
,
NativeWrapper.GetProcessFileName(Object)
Copyright © SAS Institute. All Rights Reserved.