Attempts to terminate a real-time process by sending a DSM TERMINATE message to that process.
BOOLEAN TerminateRtProcess( RTHANDLE hProcess, BOOLEAN bForce, DWORD msWait );
hProcess
bForce
msWait
This call waits for msWait
milliseconds before determining whether the call fails. If it fails and the bForce
parameter is TRUE, then an attempt is made to delete the process (for details, see DeleteRtProcess).
For the TERMINATE message to be received successfully, the target process must be programmed to receive DSM messages.
TRUE
FALSE
E_EXIST
hProcess
parameter does not contain a valid handle value.
E_TYPE
hProcess
parameter does not contain a handle for a process.
E_TIME
E_CONTEXT
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.1 | intime/rt/include/rtbase.h | rt.h | rt.lib |