C++ Script to list active processes with name, PID, Parent ID and User running it
Command:
x86_64-w64-mingw32-g++ -O2 ProcList.cpp -o procList.exe -I/usr/share/mingw-w64/include/ -s -ffunction-sections -fdata-sections -Wno-write-strings -fno-exceptions -fmerge-all-constants -static-libstdc++ -static-libgcc -fpermissive
You only need to run the .exe file and you list the active processes.