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:
00142149
Views:
26
>George,
>
>You've been extremely helpful on several questions I've had using the API. I have a couple of final issues that are eating my lunch that I'd like to ask you about.
>
>You posted several return codes for when mapping a network drive using the API (WNetAddConnection, etc). However I recently started receiving two codes that weren't listed: 1326 and 21


1326 is:
//
// MessageId: ERROR_LOGON_FAILURE
//
// MessageText:
//
//  Logon failure: unknown user name or bad password.
//
#define ERROR_LOGON_FAILURE              1326L
and 21 is:
//
// MessageId: ERROR_NOT_READY
//
// MessageText:
//
//  The device is not ready.
//
#define ERROR_NOT_READY                  21L
These are defined in WINERROR.H in Microsoft's VC++; it can be found in the INCLUDE subdirectory.

>
>Any ideas? ALso, is there a way to disable Windows from displaying dialog boxes? One is popping up each time I encounter the return code of 21. I am "retrying" the connection and have always been able to map on the second attempt, but a user must click the OK button of the Windows dialog box first. (Says something about default UID and GID)
>
>Any help at all is appreciated...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform