ferhatgec / processplusplus

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:C++ 98.1%Language:Shell 1.9%