In the context of monitoring and observability, I'm exploring a solution to retrieve the names of all Job Objects from a local system using the Win32 C API.
The documentation clearly explains how to get details about a single Job Object. However, the OpenJobObject call requires the name of the Job.
Due to some limitations, I would like to avoid using WMI.
One approach I know is to loop through all process handles and call IsProcessInJob, but this seems too resource-intensive.