INtime SDK Help
ntxWaitForRtProcess(INtimeDotNet)
INtime SDK v7.1 > About INtime > Alternate APIs > INtimeDotNet > ntxWaitForRtProcess(INtimeDotNet)

Waits for a process indicated by the given handle to terminate.

Visual Basic

Function ntxWaitForRtProcess(
    ByVal hWait As Integer,
    ByVal dwMilliseconds As Integer,
    ByRef pdwExitCode as Integer )

Function ntxWaitForRtProcess( ByVal hWait As Integer, ByVal dwMilliseconds As Integer, ByRef phProcess as Integer, ByRef pdwExitCode as Integer )

C#

void ntxWaitForRtProcess(
    Int32 hWait,
    Int32 dwMilliseconds,
    ref Int32 pdwExitCode )

void ntxWaitForRtProcess( Int32 hWait, Int32 dwMilliseconds, ref Int32 phProcess, ref Int32 pdwExitCode )

Parameters

hWait
A wait handle returned from ntxStartRtProcess.
dwMilliseconds
The number of milliseconds the calling thread waits:
NO_WAIT The thread does not wait.
INFINITE The thread waits for its request to be fully satisfied.
Any positive integer Calling thread goes to sleep for this many milliseconds, after which it awakes.
pdwExitCode
A variable which receives the process exit code.
phProcess
A variable which receives the process handle which just exited.
Note: The returned exit code value is valid only in the case of a successful completion of the call.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_TIME 0x0001
The timeout elapsed before the desired initialization occurred.
E_TYPE 0x8002
hLocation is not a valid location
E_EXIST 0x0006
hLocation is not a handle for a valid object

Requirements

Versions Defined in Include Link to
INtime 6.1 intime/nt/include/ntx.h ntx.h ntxext.lib
See Also