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



robe070 wrote:
"Len Holgate" wrote:

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


Thanks Len, I'd read that somewhere on the web too. But our exe has a
manifest! It can't run without one as it uses MSVCRT90.DLL which will not
work unless we use a manifest. There is something more to it than just the
manifest.

What was meant was probably not just "a manifest", but a manifest containing
the Vista trustInfo element, such as:

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"/>
</requestedPrivileges>
</security>
</trustInfo>

--
Larry Futrell


.



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 not ot
    ... Explorer it is assigned one already hence we cannot assign another Job ... it does not have a Job Object. ... 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 ...
    (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)