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:
00841571
Views:
32
This message has been marked as the solution to the initial question of the thread.
Hey Larry,

Thanks for your input!

Actually, with some time put into playing around with this, I found that I CreateProcessWithLogonW will allow me to:

1) Run code on a network machine that will log on to a peer machine and launch a program from their machine (given that the login I use has proper permissions) even though the user logged in on the first machine has no login or rights on the peer machine.

2) Log on to a domain from a client machine of that domain and launch a program on that domain. The cool thing about this is that CreateProcess... allows me to log in as a user that DOES have rights to data and thus allows my program to manipulate data for which the user running the program does not have rights.

The only thing I have not been able to get to work is to get my CreateProcess... code to run on a machine that is not part of a domain to log into a domain as a valid user on that domain and execute a program on that domain.

Something that I have not tried yet is logging into a non-microsoft server via CreateProcess ...

Guess what I'm saying is CreateProcessWithLogonW will allow me to do what I was asking to some extent. Guess a lot of it depends on how ones network has been set up.

In retrospect, I probably should have mentioned that everything I wanted to do was in respect to a LAN. I wasn't trying to log into machines outside of our LAN.

Thanks again for your input though!

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform