15 #include <boost/system/error_code.hpp>
22 template <
class Process>
26 if (!::TerminateProcess(p.process_handle(), EXIT_FAILURE))
28 BOOST_PROCESS_THROW_LAST_SYSTEM_ERROR(
"TerminateProcess() failed");
32 template <
class Process>
34 terminate(
const Process& p, boost::system::error_code& ec)
36 if (!::TerminateProcess(p.process_handle(), EXIT_FAILURE))
38 BOOST_PROCESS_RETURN_LAST_SYSTEM_ERROR(ec);