>>I'm close to getting an API to work,
>>but after quite a bit of trying, I could
>>another little nudge.
>>
>> I'm converting a 2.6 legacy app to VFP 5.0
>>and it uses WNetAddConnection.
>> I know I have to use WNetAddConnection2 for
>>Win95.
>>
>>On the MSDN CD, the function requires
>>lpNetResource, lpPassword, lpUsername, and dwFlags
>>
>> I believe I can leave the password and username
>>blank, but NetResource is supposed to point to
>>a "structure that specifies connection details",
>>and Flags is supposed to be Dword.
>>
>> So, could anyone nudge me on this?
>>
>> I think if you could give me a one line
>>example of the structure of the function, I
>>might be able to pick out what I need.
>
>See Pointers in the Files section. This will allow you to access structures.
Well, I got this from the VB5 Api viewer. Hope this helps some... It's the structure of the type NETRESSOURCE is supposed to be...
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
As for the values and prerequirements, sorry, they're not included, but this might get you started...
Hugo Dahl
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith