Skip navigation links
JNA API 4.2.1
com.sun.jna.platform.win32

Interface Psapi

  • All Superinterfaces:
    AltCallingConvention, Library, StdCall, StdCallLibrary


    public interface Psapi
    extends StdCallLibrary
    The process status application programming interface (PSAPI) is a helper library that makes it easier for you to obtain information about processes and device drivers.
    Author:
    Andreas "PAX" Lück, onkelpax-git[at]yahoo.de
    • Field Detail

      • INSTANCE

        static final Psapi INSTANCE
    • Method Detail

      • GetModuleFileNameExA

        int GetModuleFileNameExA(WinNT.HANDLE process,
                                 WinNT.HANDLE module,
                                 byte[] lpFilename,
                                 int nSize)
        Retrieves the fully qualified path for the file containing the specified module.
        Parameters:
        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.
        Returns:
        If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util.getLastErrorMessage().
      • GetModuleFileNameExW

        int GetModuleFileNameExW(WinNT.HANDLE process,
                                 WinNT.HANDLE module,
                                 char[] lpFilename,
                                 int nSize)
        Retrieves the fully qualified path for the file containing the specified module.
        Parameters:
        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.
        Returns:
        If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util.getLastErrorMessage().
      • GetModuleFileNameEx

        int GetModuleFileNameEx(WinNT.HANDLE process,
                                WinNT.HANDLE module,
                                Pointer lpFilename,
                                int nSize)
        Retrieves the fully qualified path for the file containing the specified module.
        Parameters:
        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.
        Returns:
        If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call Kernel32Util.getLastErrorMessage().
JNA API 4.2.1

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.