Al,
Don't you really want to only impersonate the user and use the API call
ImpersonateLoggedOnUser()?

http://www.news2news.com/vfp/?group=101&function=867

Logging on the user may well disconnect you from the current domain so the
mapping will in effect disappear - I think

Dave



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Allen
Sent: 28 October 2009 13:54
To: [email protected]
Subject: logonuser()

Hi foxgang
I'm trying to get a VFP DLL working on a web service to use data on another
machine. The users IT man has screwed up, making the new server on a
different domain to the main server but I have been able to map a drive
under administrator login.
Now the iisapi is made to log in as Network Service as usual. I have in the
past used LogonUser() api to change the user logged in but it seems Win2003
server doesn't seem to like that. Is anyone doing this with a web service
getting data from another PC and if so how please. Or any clues why
LogonUser returns error 6.
TIA
Allen



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/f046729f6e7645c6bcdf37342df09...@develop
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to