Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to elevate a program to administrator
Message
De
21/05/2010 15:24:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01465400
Message ID:
01465502
Vues:
84
>In a VFP desktop application, is it possible to elevate to administrator during running the programming?
>
>Usually administrator rights are not required, but certain tasks do require administrator rights. I would like to prompt the user to elevate so certain tasks can be performed.

I haven't done it, but I believe you can use RunAs for this. This can be invoked programmatically e.g. http://alt.pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToRunAProgramAsAnotherUser.html

Unfortunately that example is .Net rather than VFP. I believe the question has been asked/answered here before, with a VFP solution ( Hugo Ranea, maybe? ).
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform