Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call API if need a Structure as Parameter?!
Message
From
14/09/1998 09:28:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
How to call API if need a Structure as Parameter?!
Miscellaneous
Thread ID:
00136123
Message ID:
00136123
Views:
62
Structure of NETRESOURCE in VB is...

Type NETRESOURCE
dwScope As Long
dwType As Long
dwDisplayType As Long
dwUsage As Long
lpLocalName As String
lpRemoteName As String
lpComment As String
lpProvider As String
End Type

How to Call Following API on the First parameter?!

Call in VB is:
Declare Function WNetAddConnection2 Lib "mpr.dll" Alias _
"WNetAddConnection2A" (lpNetResource As NETRESOURCE, _
ByVal lpPassword As String, ByVal lpUserName As String, _
ByVal dwFlags As Long) As Long

THE question is how to translate it to VFP syntax.

Thanks a lot! ^_^
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Next
Reply
Map
View

Click here to load this message in the networking platform