[DUG] IPC with an elevated program

Ross Levis ross at stationplaylist.com
Tue Jan 19 02:13:15 NZDT 2010


This is not strictly Delphi related but hope someone can help.

 

Since Vista came out I've been using a small program I wrote with a manifest
to give it elevated privileges, so I can write to the HKLM registry when
requested by any of my applications.  I use a shared memory component
(memory mapped file with no file) to communicate between an app and the
small program which is loaded when required.

 

But since Vista SP1 or SP2, Microsoft appears to be preventing shared memory
access between an app with standard privileges and one with elevated.  I've
been wondering why some users have been reporting odd problems and this
appears to be it.

 

So it appears I need an alternative method.  I could use the elevated DLL
method, but this seems complicated.  I'm not an advanced programmer.  It's a
bugger as I spent quite a bit of time getting this working well when Vista
first came out.  I would prefer to continue using the small app, but it
appears I need some other method for sharing text between 2 processes of
different elevations.  Does anyone know if this is possible?

 

I've heard that even PostMessage and SendMessage from a standard to elevated
program does not work anymore.

 

Thanks,

Ross.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100119/b4da4d14/attachment-0001.html 


More information about the Delphi mailing list