I'm trying to create a C++ program which ends a process. So starting from scratch, I'm not too sure which direction I should be heading? I mean based on the research I've done the solution involves these steps (let me know if it's incorrect logic):
Get process name (in my case its always the same one)
Iterate through all processes and find matching name (assuming this process has a unique name)
Get the id and terminate it
As I mentioned I don't have to worry about checking for duplicate process names since its assumed to be unique, but now I need guidance on what sort of library, classes etc I should be looking at?