[DUG] IPC with an elevated program

Conor Boyd Conor.Boyd at trimble.co.nz
Tue Jan 19 13:42:30 NZDT 2010


I went down the elevated COM DLL route that you mention about 6 months
ago, and it works very well.
 
There's a post on StackOverflow here
(http://stackoverflow.com/questions/923350/delphi-prompt-for-uac-elevati
on-when-needed/923551#923551) that I contributed to that should have the
info you need.
 
There's a link to a PDF there that was helpful along with the link that
I posted.
 
I'm busy in training this week, but have a look at the links, and if
you're still having trouble, drop me a line, and I'll see if I can find
a few mins here and there to help.
 
C.

________________________________

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Ross Levis
Sent: Tuesday, 19 January 2010 1:26 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] IPC with an elevated program



I don't really want global shared memory.  The reason for the small app
is to have the UAC prompt appear when I need to make changes to the HKLM
registry, which is very rare.  There is a standard way to do this but it
sounds difficult.  Some sort of DLL needs to be created I believe.

 

Ross.

 

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Alan Rose
Sent: Tuesday, 19 January 2010 8:55 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] IPC with an elevated program

 

 

If you want to to use shared memory in Vista and above its best to write
a service to create global shared memory that all users can access. The
key here is global shared memory and with the right security bits set.
Best to Google global shared memory for more info.

 

heres one link I found that maybe helpful

http://social.msdn.microsoft.com/Forums/en-US/windowssecurity/thread/08e
18474-5f8c-4294-a9cf-7ede1ff8ae1f/

  

 

 >> 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.

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


More information about the Delphi mailing list