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 |
Tells the RT Application Loader to wait for the loaded process to signal it is running before allowing the call to return. |
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