Close a Process with command.
- Parameters
-
| [in] | processPath | Process Path. |
- Returns
- Returns true if Open Process Successfully.
Definition at line 53 of file ProcessLibrary.cpp.
54 {
56
57 const std::string temp = std::string("C:/Windows/System32/TASKKILL.exe /F /IM ") + processName;
58 if(system(temp.c_str()) != 0)
59 {
60 SPICES_CORE_WARN("Process: " + std::string(processName) + " Close Failed")
61 return false;
62 }
63
64 return true;
65 }
#define SPICES_PROFILE_ZONE
Referenced by SpicesTest::TEST().