Article

From:
To:
Ronald Hoek
Subject:
Re: On demand elevation in Delphi applicatio to create folder in'ProgramFiles' folder [Edit]
Newsgroup:
embarcadero.public.delphi.com.activex.using

Re: On demand elevation in Delphi applicatio to create folder in'ProgramFiles' folder [Edit]

Ronald wrote:

> I'd like the have a on demand elevation of an filesystem COM object,
> so I can delete/rename/create items in the 'Program Fiels' folder.

You must create the COM object using the COM Elevation Moniker, and the COM 
object needs to be registered to support elevation.  See MSDN for more details:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms679687.aspx
> But now I need some 'objects' ClassID / Interface ID etc to actually
> do some fiel system actions....

And the problem is...?  You use the same CLSID/IID values that you would 
use with CoCreateInstance() when creating the COM object without elevation.

-- Remy Lebeau (TeamB)
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Tue, 19 Nov 2024 16:41:35 UTC
Copyright © 2009-2024
HREF Tools Corp.