[DUG] UAC control
Ross Levis
ross at stationplaylist.com
Sun May 2 14:53:05 NZST 2010
Relaunching is not really an option, as it could be playing a media file at
the time a user could ask for a specific change which requires elevated
access.
What I may need to do is write all the code into my elevated app and use
command-line parameters to execute the code and send the required info. And
use ExitCode to return whether it was successful or not. That may do the
trick.
Ross.
-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Paul Heinz
Sent: Sunday, 2 May 2010 2:03 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] UAC control
Hi Ross
> I'm back to this subject again.
I'm not sure if anyone has already indicated this discussion:
The trick of launching yourself again as elevated with a command line
parameter seems pretty straightforward if you're not comfortable with
writing COM servers.
http://stackoverflow.com/questions/923350/delphi-prompt-for-uac-elevatio
n-when-needed
Cheers,
Paul.
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
More information about the Delphi
mailing list