|
-
September 24th, 2011, 12:22 PM
#1
UAC on WIndows7
To run exe which require administrator right, i use ShellExecute to run as admin in Initinstance method. It works fine and my exe run as admin.
But UAC windows give a message "An unidentified program want to access..........."
It's not secure.
http://www.codeproject.com/KB/vista-...12&fr=26#xx0xx
To make my program secure i follow above link, create and add bin file to my project and write below contents in it.
But it does not work. Please suggest i want a window like in given link
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="myexe.exe"/>
<description>myexe</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|