#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 expiredhth,