Returns the number of running processes matching the image of the executable currently open in IDA. This function also needs to be called to initialise the process snapshot, which is used by IDA for populating data structures utilised by other process-related functions.
Examples:
#include <dbg.hpp>
msg("There are %d processes running.\n", get_process_qty());