General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only