Example test-processes.lua
require 'winapi' pids = winapi.get_processes() for _,pid in ipairs(pids) do local P = winapi.process_from_id(pid) local name = P:get_process_name(true) if name then print(pid,name) end P:close() end