Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping and Unmapping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00137678
Message ID:
00138283
Vues:
15
>This may sound silly, but where can I find a list of return codes? (0 means the connection attempt was successful, but if the connection fails, I'd like to give the client a good guess about why the operation may have failed.)
>
Hi Patric,

Here's a listing of possible errors
#DEFINE NO_ERROR                           0    && No error occurred.
#DEFINE ERROR_ACCESS_DENIED                5    && Access is denied.
#DEFINE ERROR_NOT_ENOUGH_MEMORY            8    && Insufficient Memory 
#DEFINE ERROR_BAD_DEV_TYPE                66    && The device type and the resource type do not match.
#DEFINE ERROR_BAD_NET_NAME                67    && The value specified in the lpszRemoteName parameter is not valid or cannot be located.
#DEFINE ERROR_ALREADY_ASSIGNED            85    && The device specified in the lpszLocalName parameter is already connected.
#DEFINE ERROR_INVALID_PASSWORD            86    && The specified password is invalid.
#DEFINE ERROR_BAD_DEVICE                1200    && The value specified in lpszLocalName is invalid.
#DEFINE ERROR_DEVICE_ALREADY_REMEMBERED 1202    && An entry for the device specified in lpszLocalName is already in the user profile.
#DEFINE ERROR_NO_NET_OR_BAD_PATH        1203    && The operation cannot be performed because either a network component is not started or the specified name cannot be used.
#DEFINE ERROR_CANNOT_OPEN_PROFILE       1205    && The system is unable to open the user profile to process persistent connections.
#DEFINE ERROR_BAD_PROFILE               1206    && The user profile is in an incorrect format.
#DEFINE ERROR_EXTENDED_ERROR            1208    && A network-specific error occurred. To get a description of the error, use the WNetGetLastError function.
#DEFINE ERROR_INVALID_PASSWORDNAME      1216    && Bad Password format
#DEFINE ERROR_CANCELLED                 1223    && The user cancelled 
#DEFINE ERROR_PASSWORD_EXPIRED          1330    && Password expired
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform