Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Codes when using the API to Map Drives
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00142147
Message ID:
00142229
Views:
27
>Thanks for the info... This will definitely help me determine what is happening. Also, since I have VS 6, I now know where to look for the information next time. :-)
>
Hi Patric,

Since Ed's already given you the details on the error codes. Perhaps, I can suggest a solution for the device not ready. I haven't tested this to see if it applies, but...
DECLARE INTEGER SetErrorMode IN Win32API;
  INTEGER fuErrorMode
* 1 = SEM_FAILCRITICALERRORS
lnoldmode = SetErrorMode(1)
* Code here, and when done...
= SetErrorMode(lnoldmode)
From what you describe, a brief pause in execution, either by a short loop or a call to the Sleep() function, then a retry might do the trick.

I think that the other error might be caused by an invalid user name, rather than bad password. I think that might generate an ERROR_INVALID_PASSWORD error rather than a login failure.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform