Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Win32 Impersonation in Code ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00694514
Message ID:
00694569
Vues:
11
Steve, I can send you the .dll I wrote that works with a system service. You would have to declare it in VFP and then call it, passing the User and Password. The key thing is that, after establishing impersonation, the .dll does a CreateProcess to start your other VFP .EXE. I guess it would make sense to have a 3rd parameter that is the .EXE name. Right now it's hard-coded...
>Wondering if anyone has successfully, completely within a .prg, performed impersonation of another user account. I am thinking of Win2K "runas" functionality within an app.
>
>So for example if I wanted a DBC SP to update a central log that only administrators can write to, the SP could change to an administrator-class account, do the write, and move on without the locally logged-on user being able to do anything about it.
>
>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform