Author: HuBa, wOxxOm Last Modified: 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)
For the functions's parameters and return value, please see it's source code.
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
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=18550
nonexistent
; #Include ProcessInfo.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Process, Exist MsgBox % ProcessInfo_GetModuleFileNameEx(ErrorLevel)