SysProcessCreate2 (FUN)¶
FUNCTION SysProcessCreate2 : RTS_IEC_HANDLE
<description>Function to create a process. NOTE: Is only available on systems with processes! This functions creates and eventually starts a new process for the specified application. The properties of the created process can be defined by appropriate flags.</description> <result><p>RESULT: Handle to the created process or RTS_INVALID_HANDLE if failed.</p></result>
- InOut:
- Scope - Name - Type - Comment - Return - SysProcessCreate2- RTS_IEC_HANDLE- Input - pszApplication- REFERENCE TO STRING - <param name=”pszApplication” type=”IN”>Name of application to start as a separate process</param> - pszCommandLine- REFERENCE TO STRING - <param name=”pszCommandLine” type=”IN”>String with the command line</param> - ulFlags- UDINT- <param name=”ulFlags” type=”IN”>A combination of the process flags SYSPROCESS_CREATEFLAG_XXX.</param> - pResult- POINTER TO RTS_IEC_RESULT - <param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param> 
