public interface Psapi extends StdCallLibrary
StdCallLibrary.StdCallCallback
Library.Handler
Modifier and Type | Field and Description |
---|---|
static Psapi |
INSTANCE |
FUNCTION_MAPPER, STDCALL_CONVENTION
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Modifier and Type | Method and Description |
---|---|
int |
GetModuleFileNameEx(WinNT.HANDLE process,
WinNT.HANDLE module,
Pointer lpFilename,
int nSize)
Retrieves the fully qualified path for the file containing the specified
module.
|
int |
GetModuleFileNameExA(WinNT.HANDLE process,
WinNT.HANDLE module,
byte[] lpFilename,
int nSize)
Retrieves the fully qualified path for the file containing the specified
module.
|
int |
GetModuleFileNameExW(WinNT.HANDLE process,
WinNT.HANDLE module,
char[] lpFilename,
int nSize)
Retrieves the fully qualified path for the file containing the specified
module.
|
static final Psapi INSTANCE
int GetModuleFileNameExA(WinNT.HANDLE process, WinNT.HANDLE module, byte[] lpFilename, int nSize)
process
- A handle to the process that contains the module.module
- A handle to the module. If this parameter is NULL,
GetModuleFileNameEx returns the path of the executable file of
the process specified in hProcess.lpFilename
- A pointer to a buffer that receives the fully qualified path
to the module. If the size of the file name is larger than the
value of the nSize parameter, the function succeeds but the
file name is truncated and null-terminated.nSize
- The size of the lpFilename buffer, in characters.Kernel32Util.getLastErrorMessage()
.int GetModuleFileNameExW(WinNT.HANDLE process, WinNT.HANDLE module, char[] lpFilename, int nSize)
process
- A handle to the process that contains the module.module
- A handle to the module. If this parameter is NULL,
GetModuleFileNameEx returns the path of the executable file of
the process specified in hProcess.lpFilename
- A pointer to a buffer that receives the fully qualified path
to the module. If the size of the file name is larger than the
value of the nSize parameter, the function succeeds but the
file name is truncated and null-terminated.nSize
- The size of the lpFilename buffer, in characters.Kernel32Util.getLastErrorMessage()
.int GetModuleFileNameEx(WinNT.HANDLE process, WinNT.HANDLE module, Pointer lpFilename, int nSize)
process
- A handle to the process that contains the module.module
- A handle to the module. If this parameter is NULL,
GetModuleFileNameEx returns the path of the executable file of
the process specified in hProcess.lpFilename
- A pointer to a buffer that receives the fully qualified path
to the module. If the size of the file name is larger than the
value of the nSize parameter, the function succeeds but the
file name is truncated and null-terminated.nSize
- The size of the lpFilename buffer, in characters.Kernel32Util.getLastErrorMessage()
.