UAC problem of .cpl file

G

Guest

as we all know some app need Elevation by default,we can config the .manifest
file to do so .
but i can't config the .manifest file of the .cpl, or my cpl can't Elevation
with the manifest ;
i find some sys cpl can do this ,such as the Windows Firewall ,Add Hardware .
i want to Double-click the shotcut of my xxx.cpl in the Control Panel and
see the Elevation dialog .

how to do?

thanks to your any help
 
A

Alan Adams

dispaly name said:
as we all know some app need Elevation by default,we can config the .manifest
file to do so .
but i can't config the .manifest file of the .cpl, or my cpl can't Elevation
with the manifest ;
i find some sys cpl can do this ,such as the Windows Firewall ,Add Hardware .
i want to Double-click the shotcut of my xxx.cpl in the Control Panel and
see the Elevation dialog .

A CPL is a DLL, and there isn't any elevation activity that occurs in
response to just a LoadLibrary(). Process (EXEs) and COM objects can
be launched with elevation required, and is what the control panel
applet would have to do.

At least for the items its allows configuration of that will require
elevation. (i.e. Maybe not everything a control panel applet shows
requires elevation just to show it, but may require elevation to
actually modify the information.)

"Control Panel" topics and the spawning of an elevated EXE or COM
object from otherwise non-elevated code is discussed in at least these
Vista security-related documents:

The Windows Vista Developer Story: Application Compatibility Cookbook
http://msdn.microsoft.com/library/en-us/dnlong/html/AppComp.asp

Developer Best Practices and Guidelines for Applications in a Least
Privileged Environment
http://msdn.microsoft.com/library/en-us/dnlong/html/AccProtVista.asp

http://msdn.microsoft.com/windowsvista/reference/security/

Alan Adams
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top