Attempts to terminate a real-time process by sending a DSM TERMINATE message to that process.
BOOLEAN TerminateRtProcess(
RTHANDLE hProcess,
BOOLEAN bForce,
DWORD msWait
);
hProcessbForcemsWaitThis 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.
TRUEFALSEE_EXISThProcess parameter does not contain a valid handle value.E_TYPEhProcess parameter does not contain a handle for a process.E_TIMEE_CONTEXT| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.1 | intime/rt/include/rtbase.h | rt.h | rt.lib |