Re: Why does explorer assign a job object to some processes and not ot



On Jul 31, 2:22 am, robe070 <robe...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
We are trying to control child processes of our main process by assigning
these children to a Job Object. But, if we start the main process from
Explorer it is assigned one already hence we cannot assign another Job
Object. On the other hand if we execute our main process from the command
line, it does not have a Job Object. This can be viewed using Process
Explorer and looking at tyhe Process' properties - it eithe rhas a Job tab or
it does not.

Thats the background to the question, why is it assigning a job object when
I execute the app from a folder, but when executed from the command line it
does not get a job object?

According to Richter's Window's Via C++ book...

In Vista, Explorer will add processes which don't have a manifest to a
"PCA" prefixed job so that the Program Compatability Assistant can
jump in and 'help' if it crashes. To avoid having explorer add your
process to one of these jobs you need to define a manifest for the
application.

Len
http://www.lenholgate.com
.



Relevant Pages

  • Re: Why does explorer assign a job object to some processes and no
    ... assigning these children to a Job Object. ... process from Explorer it is assigned one already hence we cannot assign ... Thats the background to the question, why is it assigning a job object ... process to one of these jobs you need to define a manifest for the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Why does explorer assign a job object to some processes and no
    ... assigning these children to a Job Object. ... process from Explorer it is assigned one already hence we cannot assign ... Thats the background to the question, why is it assigning a job object ... process to one of these jobs you need to define a manifest for the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: SeIncreaseQuotaPrivilege
    ... Currently, when> CreateProcess gets called around 22 times, I begin to get errors on the call to ... > Increase quotas > Allows a process that has Write Property access to another process to> increase the processor quota that is assigned to the other process. ... > Other points of interest in this problem> I am creating these "children" processes and assigning them to a job object. ...
    (microsoft.public.windows.server.security)
  • Re: How to use job object
    ... > I have a question about how to use job object. ... > Here is my codes. ... > It looks like the new process will not execute until my process is ended. ... > My OS is Win2K. ...
    (microsoft.public.win32.programmer.kernel)
  • How to use job object
    ... I have a question about how to use job object. ... Here is my codes. ... ZeroMemory(&si, sizeof(si)); ... It looks like the new process will not execute until my process is ended. ...
    (microsoft.public.win32.programmer.kernel)