Elevation permission runtime

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have an application using .NET 3.5 and one of the forms needs elevated UAC permission at runtime.  This form is call infrequently so I really dont want the entire application to require elevated pemission.  Currently I have the app.manifest requestedExecutionLevel set to requireAdministrator which is not good.<br/><br/>Could someone tell how to request elevated permission for this one form.  I read the artical about putting the shield on the button but it does not give any code.<br/><br/>I also found something about calling an extermal DLL but I would prefer something pure .NET so I dont have a 32/64 bit problem to work around.<br/><br/>Thanks in advance,<br/>John<hr class="sig jjhii

View the full article
 
Back
Top