#include <dbg.hpp> // Only get the info if a process is actually running.. if (get_process_qty() > 0) { process_info_t pif; // Populate pif get_process_info(0, &pif); msg("ID: %d, Name: %s\n", pif.pid, pif.name); } else { msg("No process running!\n"); }