Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 708 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 708 Bytes

ProcessPlusPlus

Single header process & system information library. Written in C++17.

        std::string text(argv[1]);
        if(text == "--pid") {
                std::string test(argv[2]);
                std::cout << "PID:" << procplusplus::GetPIDByName(test) << "\nName: " <<
                argv[2] << "\n";
        } else if(text == "--name") {
                std::string pid_string(argv[2]);
                int pid = atoi(pid_string.c_str());
                std::cout << "Name: " << procplusplus::GetProcessName(pid) + "PID: " + 
                pid_string + "\n";
        } else
                HELP(argv[0]) 

ProcessPlusPlus licensed under the terms of MIT License.