I need to connect to a machine programtically as a specific user and retrieve the contents of a file. Can anyone suggest which API would be appropriate? LogonUser() API creates a session on the localhost, whereas I want to login to the server as a specific user.
Sample code would be appreciated.
thanks in advance.