Introduction
Microsoft corporation is proud of user account control。It provides maximum protect ability for computer。It is very useful for beginner and generally users,but people that has experience is very unsuitable。Especially program developer,When we debug our program,some access reject。
We must run the executable file without debug under administrator。At Last I can not bear it。And I disable it。
Method
Open Control panel and go into “user account and family safety”。Click Change your windows password linkbutton。Now at end of row is “Turn user Account Control on or off”.
Run msconfig.exe. and open the tools tab page. Here provide tool to disable and enable user account control.
Okay.We can change the pattern now. change it and restart computer. The annoying pop dialog about the permission go away. Oh the Sky is blue back.
Above I resolve the debug trouble. But I can not be sure that the client hate this control yet. Before We release our program, we should configure the project property to request the administrator right.
If we work under Vs2008 environment. Open the project property page,configuration properties->linker->manifest file. Here you can configurate it.
If we work under VS2005 environment. It is difficult to configuate. Follow me.
Add a xml document which comment like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.DebugCRT" version="9.0.21022.8" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
This document must is a embedded resource. And in property page specify this file as additional manifest file. build your program.
At end