Mercurial > minori
view dep/animia/test/main.cpp @ 128:859d2a957940
cmake: set CXX_STANDARD to 17
builds: get wget on linux, don't attempt to mount binfmt_misc on win32/64
I'd prefer staying on C++11, but if constexpr is just so damn sexy...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 09 Nov 2023 02:28:22 -0500 |
parents | 4c6dd5999b39 |
children |
line wrap: on
line source
#include "animia.h" #include <iostream> int main() { /* getting all open files */ std::vector<int> pids = Animia::get_all_pids(); for (int i: pids) { if (Animia::get_process_name(i) == "mpc-hc64.exe") { std::vector<std::string> files = Animia::filter_system_files(Animia::get_open_files(i)); for (std::string s: files) { std::cout << Animia::get_process_name(i) << " (" << i << "): " << s << "\n"; } } } }