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]) - 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Single header process & system information library. Written in C++17.
License
ferhatgec/processplusplus
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Single header process & system information library. Written in C++17.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
              Packages 0
        No packages published