Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Login
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00833716
Message ID:
00833801
Views:
30
Hi Aashish,

Try WNetAddConnection2 API function -- it accepts password and user name as parameters.
DECLARE INTEGER WNetAddConnection2 IN mpr;
	STRING @lpNetResource, STRING lpPassword,;
	STRING lpUsername, INTEGER dwFlags
MSDN link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/wnetaddconnection2.asp

FoxPro code sample:
Mapping and disconnecting network drives in FoxPro application
http://www.news2news.com/vfp/?example=387&function=597
Previous
Reply
Map
View

Click here to load this message in the networking platform