Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling WIN API
Message
From
21/03/1997 09:46:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Calling WIN API
Miscellaneous
Thread ID:
00025176
Message ID:
00025176
Views:
84
Sorry, I couldn't reply to the original message.

Here is the API I need to call. Anyway I've done a .DLL in the meantime, but I'd like to know if it's possible to call it using only VFP.

DWORD WNetAddConnection2(LPNETSOURCE lpNetSource, LPSTR lpPassword, LPSTR lpUserName, DWORD fdwConnection)

LPNETSOURCE defined as follow
{
dwType /* Integer, no problem */
lpLocalName /* Points to a string */
lpRemoteName /* Points to a string */
and so on ..
}

So, I could pass a string as lpUserName or lpPassord, but how do I pass lpRemoteName since it is a pointer to a string within a structure.

Can I construnct a Fox string as "0UserNamePassord...", I think I can not do that, can I?

Thank you all for replying.
Nick
Next
Reply
Map
View

Click here to load this message in the networking platform