Hello community,
Im connecting to a mapped drive via a smal app im trying to write.
Im using the WNETAddConnection Function but i noticed it only takes 3 parameters.
I need to pass it my user ID since the Authentication on the server im connectiong to uses a different USer ID for me instead of my systems ID.
Is there a parameter im missing or am i using the correct function??
Code:Private Declare Function WNetAddConnection Lib "mpr.dll" Alias "WNetAddConnectionA" (ByVal lpszNetPath As String, ByVal lpszPassword As String, ByVal lpszLocalName As String) As Long)





Reply With Quote