Hi guys,
I'm no pro programmer, and this has me stumped.

I'm trying to write a small control to run through a list of NT share names, mapping each one and getting disk stats which then get passed to a database.

Problem is, I can't get the mapping to work. I'm using the declare below, but it returns 1200 (as opposed to 0,2,6 for Success, Net Err, Bad Pass).

Declare Function WNetAddConnection Lib "mpr.dll" Alias "WNetAddConnectionA" (ByVal lpszNetPath As String, ByVal lpszPassword As String, ByVal lpszLocalName As String) As Long

Anybody know what I'm doing wrong? or what the 1200 returned means?

Cheers