Re: Manifests and requestedExecutionLevel



"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:h6t49395k2e05vb7ji9bsv46sc3c6kbhs3@xxxxxxxxxx
There is a dearth of documentation on manifests, such as the little
inconsequential
details such as syntax, semantics, and methods for creating them. So I'm
stuck, and I'm
looking for advice.


The best documentation for these things is blogs. For example
http://weblogs.asp.net/kennykerr/archive/2006/09/29/Windows-Vista-for-Developers-_1320_-Part-4-_1320_-User-Account-Control.aspx


I have an app that has to run at the integrity level designated by
SECURITY_MANDATORY_MEDIUM_RID, because it wants to exchange PostMessages
with another app
running at that same level. Right now, it always starts at
SECURITY_MANDATORY_HIGH_RID.
While I can re-launch it using CreateProcessAsUser, it would be nicer if
it could launch
itself at medium integrity level, and then in the unlikely case the
co-process were
running high or low would a relaunch be necessary.

So the questions are (a) is this something the manifest will do for me?
(b) if so, what is
the correct syntax for placing it in the manifest? and (c) given that the
previous two
questions have positive answers, what is the technique of getting this
added to the
manifest that is created for me automatically by VS2005?



Kenny's article above makes it seem impossible to use a manifest to specify
a medium MIC. This will be the default for standard users but not for Admin
users (which will be High by default).

Kenny's article gives you a manifest. See the requestedExecutionLevel
section, but unfortunately there is no way to specify Medium MIC here. In
VS2005 project Properties, see the manifest tab and specify and Additional
Manifest.


-- David


.



Relevant Pages

  • Re: Java and Jar
    ... Since Jars are platform-independent, ... The manifest is unusually picky about syntax that normally would not ...
    (comp.lang.java.programmer)
  • Re: Manifests and requestedExecutionLevel
    ... and it handwaves about the manifest without actually telling how to ... I wonder why manifests are so complex that the documentation was not delivered on the day ... details such as syntax, semantics, and methods for creating them. ... Kenny's article above makes it seem impossible to use a manifest to specify ...
    (microsoft.public.vc.mfc)
  • Re: How create a manifest for a VC++ 5 application?
    ... Is this required for Vista? ... So for I presumably specify MFC42.DLL and MSVCRT.DLL? ... Can anyone tell me how to write a manifest for this? ... then you don't need to register them in the registry. ...
    (microsoft.public.vc.mfc)
  • Re: Java application not working with space in the path
    ... does its Manifest file specify a Main-Class ... is the specified class name correct ... Obvious: the jar is there ...
    (comp.lang.java.programmer)
  • Re: How to display mfc control in new look style?
    ... You need to specify that the program uses version 6 of the Common Controls library. ... You do this in the manifest, ... Author of 'Mozart the Music Processor' ... For discussion/support see ...
    (microsoft.public.vc.mfc)