Loads an RT executable and runs it in a new process.
Visual Basic:
Function ntxCreateRtProcess( ByVal hLoc As Integer, ByVal strName As String, ByVal strArgs As String, ByRef pProcessAttributes As NTXPROCATTRIBS, ByVal dwFlags As Integer) As Integer Function ntxCreateRtProcess( ByVal hLoc As Integer, ByVal strName As String, ByVal strArgs As String, ByVal dwFlags As Integer) As Integer
Visual C#:
Int32 ntxCreateRtProcess ( Int32 hLoc, String strName, String strArgs, ref INtime.NTXPROCATTRIBS pProcessAttributes, Int32 dwFlags); Int32 ntxCreateRtProcess ( Int32 hLoc, String strName, String strArgs, Int32 dwFlags);
The second definition passes 0 (zero) for the NTXPROCATTRIBS structure, which causes all defaults to apply. When using the first definition, the fields should be assigned reasonable values other than zero.
hLoc
strName
strArgs
pProcessAttributes
dwFlags
NTX_PROC_DEBUG |
Starts the process in a halted state for debugging. (Identical to the RT Application Loader's -debug switch.) |
NTX_PROC_EXECUTABLE_DS |
Marks the process' data segment executable. (Identical to the RT Application Loader's -odseg switch.) |
NTX_PROC_SHOW_PROGRESS |
Displays the RT Application Loader's progress bar during the ntxCreateRtProcess call. |
NTX_PROC_WAIT_FOR_INIT |
Causes the RT Application Loader to wait for the loaded process to complete its initialization phase. The loader waits until an object (it can be any object) is cataloged as "R?END_INIT" in the loaded process's object directory, or the internal timeout period elapses. To catalog an object as R?END_INIT the following API call can be used when the INtime Process has finished its initialization phase: CatalogRtHandle(NULL_RTHANDLE, GetRtThreadHandles(THIS_PROCESS), static_cast("R?END_INIT")); |
The handle to the new process.
E_LOCATION
E_NTX_COMM_FAILURE
Versions | Reference |
---|---|
INtime 3.0 | INtimeDotNet |
INtimeDotNet system calls, Process system calls, NTXPROCATTRIBS, RT Application Loader