>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...