Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with CreateProcessWithLogonW
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00840676
Message ID:
00840790
Views:
38
>Does CreateProcessWithLogonW only allow you to log in (as a different user) onto the machine on which the code is running or will it also allow you to log into another networked machine as a user on that machine?
>
>In other words, is it possible to put our data on a secure server into which none of our users are connected. Our users would then run a sort of shell app on their local machine. This shell app would use CreateProcessWithLogonW to log in to the secure server and launch an app on that server that has access to our data.
>
>Will CreateProcessWithLogonW allow this type of thing? If not, is there something that will allow this?
>
>Thanks so much for your help.

Rodd,
CreateProcess... won't do this but you can do something like this using:

1. DCOM. CreateObjectEX could be used to instantiate an object on the remote box and it could be set up with the appropriate security context to read the data there. Using method calls, you can access the data remotely and return just what you need.
2. Web Services. You can create and install a web service on a remote PC. Using VFP, you can consume that web service and get the data you need without having access to the remote box. You simply need an HTTP(S) connection. There is a Walkthrough on how to create web services in the VFP Help. You can also review an article on the subject here http://msdn.microsoft.com/msdnmag/issues/01/10/vfp7/toc.asp.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform