Re: Why does explorer assign a job object to some processes and no
- From: "Larry Futrell" <lfutrell@xxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Aug 2008 10:34:32 -0400
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
.
- Follow-Ups:
- Prev by Date: Re: Writing to a file from kernel mode
- Next by Date: Re: 32 / 64 bit problem with CreateRemoteThread
- Previous by thread: Writing to a file from kernel mode
- Next by thread: Re: Why does explorer assign a job object to some processes and no
- Index(es):
Relevant Pages
|