Function Reference


_WinAPI_GetParentProcess

Retrieves the PID of the parent process for the specified process

#include <WinAPIProc.au3>
_WinAPI_GetParentProcess ( [$iPID = 0] )

Parameters

$iPID [optional] The PID of the process. Default (0) is the current process.

Return Value

Success: The PID of the parent process.
Failure: 0 and sets the @error flag to non-zero.