SysProcessGetState (FUN)¶
FUNCTION SysProcessGetState : RTS_IEC_RESULT
<description>This function retrieves the status of the process specified by its handle.</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>
- InOut:
- Scope - Name - Type - Comment - Return - SysProcessGetState- RTS_IEC_RESULT- Input - hProcess- RTS_IEC_HANDLE- <param name=”hProcess” type=”IN”>Handle of the process</param> - pulState- POINTER TO UDINT - <param name=”pulState” type=”OUT”>Pointer to variable being assigned to value 1 for running processes and value 2 for terminated processes</param> 
