|
-
Aug 10th, 2000, 06:25 AM
#1
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|