Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32 Impersonation in Code ?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00694514
Message ID:
00694569
Views:
12
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform