# ProcessInfo

作者: HuBa, wOxxOm 最近更新时间: 20100318

Function library to retrieve various application process informations:
* Script's own process identifier
* Parent process ID of a process (the caller application)
* Process name by process ID (filename without path)
* Thread count by process ID (number of threads created by process)
* Full filename by process ID (Modified version of shimanov's GetModuleFileNameEx() function)

ProcessInfo_GetCurrentParentProcessID()
ProcessInfo_GetCurrentProcessID()
ProcessInfo_GetModuleFileNameEx(ProcessID)
ProcessInfo_GetParentProcessID(ProcessID)
ProcessInfo_GetProcessInformation(ProcessID, CallVariableType, VariableCapacity, DataOffset)
ProcessInfo_GetProcessName(ProcessID)
ProcessInfo_GetProcessThreadCount(ProcessID)

关于函数的参数和返回值, 请参阅其源码.

#### 备注

Added to all functions manually the ProcessInfo prefix.
Also made a small fix, found by a GregL (Guest) http://www.autohotkey.com/forum/viewtopic.php?p=339999#339999

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=18550

#### 许可

不存在

#### 示例

    ; #Include ProcessInfo.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    Process, Exist
    MsgBox % ProcessInfo_GetModuleFileNameEx(ErrorLevel)