<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>Hi all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>I'm about to pull a chunk of code out of my Delphi app and
bundle it into another binary so that I can elevate that chunk of functionality
on Vista, while leaving the main app running unelevated.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>I've seen a number of references to the blog posting linked
below which I can't get access to (when I visit it, it says I haven't been
invited to read that blog). I believe this article to be describing how to
package this code up into a COM DLL and elevate my administrative functionality
that way.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2><A
href="http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html">http://developersoven.blogspot.com/2007/02/leveraging-vistas-uac-with-delphi-part.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>Can anybody here provide more information on this
process? I know how to write COM DLLs no problem, but I'm unsure about
whether there are other issues involved here?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>Or does anybody have an alternative suggestion for
functionality requiring elevation on Vista? The other alternative I've got
is just to bundle my code into a simple executable with an elevated manifest
resource compiled into it, and simply ShellExec that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>(The functionality in question is simply writing value(s)
to "our" key in HKLM in the registry).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=466184002-07052009><FONT face=Arial
color=#0000ff size=2>Conor</FONT></SPAN></DIV></BODY></HTML>