I am using CreateProcessAsUser
Windows API method to create process. I am creating the process with a security token and add it to a job object.
Can I limit the maximum number of threads for the process I am staring using either security token or job object or any other method?
I am using C# but the language doesn't matter if the solution involves calling direct Windows API calls.