SysProcessCreate (FUN)

FUNCTION SysProcessCreate : RTS_IEC_HANDLE

<description>Function to create a process. NOTE: Is only available on systems with processes! This function starts the specified application as new process, optionally either in the fore- or in the background. </description> <result><p>RESULT: Handle to the created process or RTS_INVALID_HANDLE if failed.</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysProcessCreate

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>

ulHide

UDINT

<param name=”ulHide” type=”IN”>The application runs in the background for ulHide=1, else in the foreground.</param>

pResult

POINTER TO RTS_IEC_RESULT

<param name=”pResult” type=”OUT”>Pointer to runtime system error code (see CmpErrors.library)</param>