#include #include #include using namespace std; int main(int argc, char *argv[]) { int param; // parameter index from the command line for (param= 0; param < argc-1; param++) { cout << "Translates common NT and HTTP error codes\nUsage: translate 404.1\ntim@blackpondfarm.com\n\n"; if (strcmp(argv[1], "1") == 0) {printf("Invalid function number\n");} if (strcmp(argv[1], "2") == 0) {cout << "File not found\n";} if (strcmp(argv[1], "3") == 0) {cout << "Path not found\n";} if (strcmp(argv[1], "4") == 0) {cout << "Too many open files (no handles left)\n";} if (strcmp(argv[1], "5") == 0) {cout << "Access denied\n";} if (strcmp(argv[1], "6") == 0) {cout << "Invalid handle\n";} if (strcmp(argv[1], "7") == 0) {cout << "Memory control blocks destroyed\n";} if (strcmp(argv[1], "8") == 0) {cout << "Insufficient memory\n";} if (strcmp(argv[1], "9") == 0) {cout << "Invalid memory block address\n";} if (strcmp(argv[1], "10") == 0) {cout << "Invalid environment\n";} if (strcmp(argv[1], "11") == 0) {cout << "Invalid format\n";} if (strcmp(argv[1], "12") == 0) {cout << "Invalid access code\n";} if (strcmp(argv[1], "13") == 0) {cout << "Invalid data\n";} if (strcmp(argv[1], "14") == 0) {cout << "Reserved\n";} if (strcmp(argv[1], "15") == 0) {cout << "Invalid drive was specified\n";} if (strcmp(argv[1], "16") == 0) {cout << "Attempt to remove the current directory\n";} if (strcmp(argv[1], "17") == 0) {cout << "Not same device\n";} if (strcmp(argv[1], "18") == 0) {cout << "No more files\n";} if (strcmp(argv[1], "19") == 0) {cout << "Attempt to write on write-protected media\n";} if (strcmp(argv[1], "20") == 0) {cout << "Unknown unit\n";} if (strcmp(argv[1], "21") == 0) {cout << "Drive not ready\n";} if (strcmp(argv[1], "22") == 0) {cout << "Unknown command\n";} if (strcmp(argv[1], "23") == 0) {cout << "Cyclic redundancy check (CRC) -- part of diskette is bad\n";} if (strcmp(argv[1], "24") == 0) {cout << "Bad request structure length\n";} if (strcmp(argv[1], "25") == 0) {cout << "Seek error\n";} if (strcmp(argv[1], "26") == 0) {cout << "Unknown media type\n";} if (strcmp(argv[1], "27") == 0) {cout << "Sector not found\n";} if (strcmp(argv[1], "28") == 0) {cout << "Printer out of paper\n";} if (strcmp(argv[1], "29") == 0) {cout << "Write fault\n";} if (strcmp(argv[1], "30") == 0) {cout << "Read fault\n";} if (strcmp(argv[1], "31") == 0) {cout << "General failure\n";} if (strcmp(argv[1], "32") == 0) {cout << "Sharing violation\n";} if (strcmp(argv[1], "33") == 0) {cout << "Lock violation\n";} if (strcmp(argv[1], "34") == 0) {cout << "Invalid disk change\n";} if (strcmp(argv[1], "35") == 0) {cout << "FCB unavailable\n";} if (strcmp(argv[1], "36") == 0) {cout << "Sharing buffer overflow\n";} if (strcmp(argv[1], "50") == 0) {cout << "Network request not supported\n";} if (strcmp(argv[1], "51") == 0) {cout << "Remote computer not listening\n";} if (strcmp(argv[1], "52") == 0) {cout << "Duplicate name on network\n";} if (strcmp(argv[1], "53") == 0) {cout << "Network path not found\n";} if (strcmp(argv[1], "54") == 0) {cout << "Network busy\n";} if (strcmp(argv[1], "55") == 0) {cout << "Network device no longer exists\n";} if (strcmp(argv[1], "56") == 0) {cout << "NETBIOS command limit exceeded\n";} if (strcmp(argv[1], "57") == 0) {cout << "System error; NETBIOS error\n";} if (strcmp(argv[1], "58") == 0) {cout << "Incorrect response from network\n";} if (strcmp(argv[1], "59") == 0) {cout << "Unexpected network error\n";} if (strcmp(argv[1], "60") == 0) {cout << "Incompatible remote adapter\n";} if (strcmp(argv[1], "61") == 0) {cout << "Print queue full\n";} if (strcmp(argv[1], "62") == 0) {cout << "Not enough space for print file\n";} if (strcmp(argv[1], "63") == 0) {cout << "Print file was cancelled\n";} if (strcmp(argv[1], "64") == 0) {cout << "Network name was denied\n";} if (strcmp(argv[1], "65") == 0) {cout << "Access denied\n";} if (strcmp(argv[1], "66") == 0) {cout << "Network device type incorrect\n";} if (strcmp(argv[1], "67") == 0) {cout << "Network name not found\n";} if (strcmp(argv[1], "68") == 0) {cout << "Network name limit exceeded\n";} if (strcmp(argv[1], "69") == 0) {cout << "NETBIOS session limit exceeded\n";} if (strcmp(argv[1], "70") == 0) {cout << "Sharing temporarily paused\n";} if (strcmp(argv[1], "71") == 0) {cout << "Network request not accepted\n";} if (strcmp(argv[1], "72") == 0) {cout << "Print or disk redirection is paused\n";} if (strcmp(argv[1], "80") == 0) {cout << "File exists\n";} if (strcmp(argv[1], "82") == 0) {cout << "Cannot make directory entry\n";} if (strcmp(argv[1], "83") == 0) {cout << "Fail on INT 24\n";} if (strcmp(argv[1], "84") == 0) {cout << "Too many redirections\n";} if (strcmp(argv[1], "85") == 0) {cout << "Duplicate redirection\n";} if (strcmp(argv[1], "86") == 0) {cout << "Invalid password\n";} if (strcmp(argv[1], "87") == 0) {cout << "Invalid parameter\n";} if (strcmp(argv[1], "88") == 0) {cout << "Network data fault\n";} if (strcmp(argv[1], "89") == 0) {cout << "Function not supported by network\n";} if (strcmp(argv[1], "90") == 0) {cout << "Required system component not installed\n";} if (strcmp(argv[1], "100") == 0) {cout << "Continue. Not really an error, this HTTP Status Code means everything is working fine.\n";} if (strcmp(argv[1], "101") == 0) {cout << "Switching Protocols. Again, not really an error, this HTTP Status Code means everything is working fine.\n";} if (strcmp(argv[1], "200") == 0) {cout << "Success. This HTTP Status Code means everything is working fine. However, if you receive this message on screen, obviously something is not right... Please contact the server's administrator if this problem persists. Typically, this status code (as well as most other 200 Range codes) will only be written to your server logs.\n";} if (strcmp(argv[1], "201") == 0) {cout << "Created. A new resource has been created successfully on the server.\n";} if (strcmp(argv[1], "202") == 0) {cout << "Accepted. Request accepted but not completed yet, it will continue asynchronously.\n";} if (strcmp(argv[1], "203") == 0) {cout << "Non-Authoritative Information. Request probably completed successfully but can't tell from original server.\n";} if (strcmp(argv[1], "204") == 0) {cout << "No Content. The requested completed successfully but the resource requested is empty (has zero length).\n";} if (strcmp(argv[1], "205") == 0) {cout << "Reset Content. The requested completed successfully but the client should clear down any cached information as it may now be invalid.\n";} if (strcmp(argv[1], "206") == 0) {cout << "Partial Content. The request was canceled before it could be fulfilled. Typically the user gave up waiting for data and went to another page. Some download accelerator programs produce this error as they submit multiple requests to download a file at the same time.\n";} if (strcmp(argv[1], "300") == 0) {cout << "Multiple Choices. The request is ambiguous and needs clarification as to which resource was requested.\n";} if (strcmp(argv[1], "301") == 0) {cout << "Moved Permanently. The resource has permanently moved elsewhere, the response indicates where it has gone to.\n";} if (strcmp(argv[1], "302") == 0) {cout << "Moved Temporarily. The resource has temporarily moved elsewhere, the response indicates where it is at present.\n";} if (strcmp(argv[1], "303") == 0) {cout << "See Other/Redirect. A preferred alternative source should be used at present.\n";} if (strcmp(argv[1], "304") == 0) {cout << "Not Modified. The server has identified from the request information that the client's copy of the information is up-to-date and the requested information does not need to be sent again.\n";} if (strcmp(argv[1], "305") == 0) {cout << "Use Proxy. The request must be sent through the indicated proxy server.\n";} if (strcmp(argv[1], "307") == 0) {cout << "Temporary Redirect The resource has temporarily moved elsewhere, the response indicates where it is at present. Client should still use this URL.\n";} if (strcmp(argv[1], "400") == 0) {cout << "Bad Request. Due to malformed syntax, the request could not be understood by the server. The client should not repeat the request without modifications. Please contact the server's administrator if this problem persists.\n";} if (strcmp(argv[1], "401") == 0) {cout << "Unauthorized: Logon Failed. See sub category (such as 401.1) for more detail.\n";} if (strcmp(argv[1], "401.1") == 0) {cout << "Unauthorized: Logon Failed. This error indicates that the credentials passed to the server do not match the credentials required to log on to the server. Please contact the Web server's administrator to verify that you have permission to access the requested resource.\n";} if (strcmp(argv[1], "401.2") == 0) {cout << "Unauthorized: Logon Failed due to server configuration. This error indicates that the credentials passed to the server do not match the credentials required to log on to the server. This is usually caused by not sending the proper WWW-Authenticate header field. Please contact the Web server's administrator to verify that you have permission to access to requested resource.\n";} if (strcmp(argv[1], "401.3") == 0) {cout << "Unauthorized: Unauthorized due to ACL on resource. This error indicates that the credentials passed by the client do not have access to the particular resource on the server. This resource could be either the page or file listed in the address line of the client, or it could be another file on the server that is needed to process the file listed on the address line of the client. Please make a note of the entire address you were trying to access and then contact the Web server's administrator to verify that you have permission to access the requested resource.\n";} if (strcmp(argv[1], "401.4") == 0) {cout << "Unauthorized: Authorization failed by filter. This error indicates that the Web server has a filter program installed to verify users connecting to the server. The authentication used to connect to the server was denied access by this filter program. Please make a note of the entire address you were trying to access and then contact the Web server's administrator to verify that you have permission to access the requested resource.\n";} if (strcmp(argv[1], "401.5") == 0) {cout << "Unauthorized: Authorization failed by ISAPI/CGIapp. This error indicates that the address on the Web server you attempted to use has an ISAPI or CGI program installed that verifies user credentials before proceeding. The authentication used to connect to the server was denied access by this program. Please make a note of the entire address you were trying to access and then contact the Web server's administrator to verify that you have permission to access the requested resource.\n";} if (strcmp(argv[1], "403") == 0) {cout << "Forbidden: See sub category (such as 403.1) for more detail.\n";} if (strcmp(argv[1], "403.1") == 0) {cout << "Forbidden: Execute Access Forbidden. This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.2") == 0) {cout << "Forbidden: Read Access Forbidden. This error can be caused if there is no default page available and directory browsing has not been enabled for the directory, or if you are trying to display an HTML page that resides in a directory marked for Execute or Script permissions only. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.3") == 0) {cout << "Forbidden: Write Access Forbidden. This error can be caused if you attempt to upload to, or modify a file in, a directory that does not allow Write access. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.4") == 0) {cout << "Forbidden: SSL required. This error indicates that the page you are trying to access is secured with Secure Sockets Layer (SSL). In order to view it, you need to enable SSL by typing HTTPs:// at the beginning of the address you are attempting to reach. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.5") == 0) {cout << "Forbidden: SSL 128 required. This error message indicates that the resource you are trying to access is secured with a 128-bit version of Secure Sockets Layer (SSL). In order to view this resource, you need a browser that supports this level of SSL. Please confirm that your browser supports 128-bit SSL security. If it does, then contact the Web server's administrator and report the problem.\n";} if (strcmp(argv[1], "403.6") == 0) {cout << "Forbidden: IP address rejected. This error is caused when the server has a list of IP addresses that are not allowed to access the site, and the IP address you are using is in this list. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.7") == 0) {cout << "Forbidden: Client certificate required. This error occurs when the resource you are attempting to access requires your browser to have a client Secure Sockets Layer (SSL) certificate that the server recognizes. This is used for authenticating you as a valid user of the resource. Please contact the Web server's administrator to obtain a valid client certificate.\n";} if (strcmp(argv[1], "403.8") == 0) {cout << "Forbidden: Site access denied. This error can be caused if the Web server is not servicing requests, or if you do not have permission to connect to the site. Please contact the Web server's administrator.\n";} if (strcmp(argv[1], "403.9") == 0) {cout << "Access Forbidden: Too many users are connected. This error can be caused if the Web server is busy and cannot process your request due to heavy traffic. Please try to connect again later. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.10") == 0) {cout << "Access Forbidden: Invalid Configuration. There is a configuration problem on the Web server at this time. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.11") == 0) {cout << "Access Forbidden: Password Change. This error can be caused if the user has entered the wrong password during authentication. Please refresh the page and try again. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "403.12") == 0) {cout << "Access Forbidden: Mapper Denied Access. Your client certificate map has been denied access to this Web site. Please contact the site administrator to establish client certificate permissions. You can also change your client certificate and retry, if appropriate.\n";} if (strcmp(argv[1], "403.13") == 0) {cout << "Client certificate revoked: The page you are trying to view requires the use of a valid client certificate. Your client certificate was revoked, or the revocation status could not be determined. The certificate is used for authenticating you as a valid user of the resource.\n";} if (strcmp(argv[1], "403.14") == 0) {cout << "Directory listing denied: This Virtual Directory does not allow contents to be listed.\n";} if (strcmp(argv[1], "403.15") == 0) {cout << "Client Access Licenses exceeded: There are too many people accessing the Web site at this time.\n";} if (strcmp(argv[1], "403.16") == 0) {cout << "Client certificate untrusted or invalid: The page you are trying to view requires the use of a valid client certificate. Your client certificate is untrusted or invalid. The client certificate is used for authenticating you as a valid user of the resource.\n";} if (strcmp(argv[1], "403.17") == 0) {cout << "Client certificate has expired or is not yet valid: The page you are trying to view requires the use of a valid client certificate. Your client certificate has expired or is not yet valid. The client certificate is used for identifying you as a valid user of the resource.\n";} if (strcmp(argv[1], "404") == 0) {cout << "Not Found: The Web server cannot find the file or script you asked for. Please check the URL to ensure that the path is correct. Please contact the server's administrator if this problem persists.\n";} if (strcmp(argv[1], "404.1") == 0) {cout << "Web site not found. (You can probably change the wording to read Web site instead of Web server. The Web site you are looking for is unavailable due to its identification configuration settings.)\n";} if (strcmp(argv[1], "405") == 0) {cout << "Method Not Allowed: The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting. Please contact the server's administrator if this problem persists.\n";} if (strcmp(argv[1], "406") == 0) {cout << "Not Acceptable: The resource identified by the request can only generate response entities that have content characteristics that are not acceptable according to the Accept headers sent in the request. Please contact the server's administrator if this problem persists.\n";} if (strcmp(argv[1], "407") == 0) {cout << "Proxy Authentication Required: You must authenticate with a proxy server before this request can be serviced. Please log on to your proxy server, and then try again. Please contact the Web server's administrator if this problem persists.\n";} if (strcmp(argv[1], "408") == 0) {cout << "Request Time-Out. The client did not send a request within the required time period.\n";} if (strcmp(argv[1], "409") == 0) {cout << "Conflict. There is an internal conflict of access to the resource. Please contact the server's administrator if this problem persists.\n";} if (strcmp(argv[1], "410") == 0) {cout << "Gone. The requested resource used to be on the server but is no longer available. Any robot seeing this response should delete the reference from its information store.\n";} if (strcmp(argv[1], "411") == 0) {cout << "Length Required. The request requires the Content-Length HTTP request field to be specified.\n";} if (strcmp(argv[1], "412") == 0) {cout << "Precondition Failed: The precondition given in one or more of the Request-header fields evaluated to FALSE when it was tested on the server. The client placed preconditions on the current resource meta-information (header field data) to prevent the requested method from being applied to a resource other than the one intended. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "413") == 0) {cout << "Request Entity Too Large. The URL is too long (possibly too many query strings?).\n";} if (strcmp(argv[1], "414") == 0) {cout << "Request-URI Too Long: The server is refusing to service the request because the Request-URI is too long\n";} if (strcmp(argv[1], "415") == 0) {cout << "Unsupported Media Type. The server does not support the resource type requested. Frequently found when attempting to serve up content which may require a plug-in. See also: Mime Types\n";} if (strcmp(argv[1], "416") == 0) {cout << "Requested Range Not Satisfiable. The portion of the resource requested is not available or out of range.\n";} if (strcmp(argv[1], "417") == 0) {cout << "Expectation Failed. The Expect specifier in the HTTP request header can not be met.\n";} if (strcmp(argv[1], "500") == 0) {cout << "Internal Server Error: The Web server is incapable of performing the request. Please try your request again later. Please contact the Web server's administrator if this problem persists.\n";} if (strcmp(argv[1], "500.12") == 0) {cout << "Application restarting: There is a problem with the page you are trying to reach and it cannot be displayed.\n";} if (strcmp(argv[1], "500.13") == 0) {cout << "Server too busy: There is a problem with the page you are trying to reach and it cannot be displayed.\n";} if (strcmp(argv[1], "500.15") == 0) {cout << "Requests for Global.asa not allowed: There is a problem with the page you are trying to reach and it cannot be displayed.\n";} if (strcmp(argv[1], "501") == 0) {cout << "Not Implemented: The Web server does not support the functionality required to fulfill the request. Please check your URL for errors, and contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "502") == 0) {cout << "Bad Gateway: The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request. Please contact the Web server's administrator if the problem persists.\n";} if (strcmp(argv[1], "503") == 0) {cout << "Out of Resources. Service temporarily unavailable - typically because it is currently overloaded.\n";} if (strcmp(argv[1], "504") == 0) {cout << "Gateway Time-Out: Unable to connect to origin web server. The web site you are attempting to access is currently unreachable. This may be due to a network outage, or the web site might be experiencing technical difficulties.\n";} if (strcmp(argv[1], "505") == 0) {cout << "HTTP Version not supported. The request uses a version of HTTP that is not supported.\n";} if (strcmp(argv[1], "600") == 0) {cout << "An operation is pending.\n";} if (strcmp(argv[1], "601") == 0) {cout << "The port handle is invalid.\n";} if (strcmp(argv[1], "602") == 0) {cout << "The port is already open.\n";} if (strcmp(argv[1], "603") == 0) {cout << "Caller's buffer is too small.\n";} if (strcmp(argv[1], "604") == 0) {cout << "Wrong information specified.\n";} if (strcmp(argv[1], "605") == 0) {cout << "Cannot set port information.\n";} if (strcmp(argv[1], "606") == 0) {cout << "The port is not connected.\n";} if (strcmp(argv[1], "607") == 0) {cout << "The event is invalid.\n";} if (strcmp(argv[1], "608") == 0) {cout << "The device does not exist.\n";} if (strcmp(argv[1], "609") == 0) {cout << "The device type does not exist.\n";} if (strcmp(argv[1], "610") == 0) {cout << "The buffer is invalid.\n";} if (strcmp(argv[1], "611") == 0) {cout << "The route is not available.\n";} if (strcmp(argv[1], "612") == 0) {cout << "The route is not allocated.\n";} if (strcmp(argv[1], "613") == 0) {cout << "Invalid compression specified.\n";} if (strcmp(argv[1], "614") == 0) {cout << "Out of buffers.\n";} if (strcmp(argv[1], "615") == 0) {cout << "The port was not found.\n";} if (strcmp(argv[1], "616") == 0) {cout << "An asynchronous request is pending.\n";} if (strcmp(argv[1], "617") == 0) {cout << "The port or device is already disconnecting.\n";} if (strcmp(argv[1], "618") == 0) {cout << "The port is not open.\n";} if (strcmp(argv[1], "619") == 0) {cout << "The port is disconnected.\n";} if (strcmp(argv[1], "620") == 0) {cout << "There are no endpoints.\n";} if (strcmp(argv[1], "621") == 0) {cout << "Cannot open the phone book file.\n";} if (strcmp(argv[1], "622") == 0) {cout << "Cannot load the phone book file.\n";} if (strcmp(argv[1], "623") == 0) {cout << "Cannot find the phone book entry.\n";} if (strcmp(argv[1], "624") == 0) {cout << "Cannot write the phone book file.\n";} if (strcmp(argv[1], "625") == 0) {cout << "Invalid information found in the phone book.\n";} if (strcmp(argv[1], "626") == 0) {cout << "Cannot load a string.\n";} if (strcmp(argv[1], "627") == 0) {cout << "Cannot find key.\n";} if (strcmp(argv[1], "628") == 0) {cout << "The port was disconnected.\n";} if (strcmp(argv[1], "629") == 0) {cout << "The port was disconnected by the remote machine.\n";} if (strcmp(argv[1], "630") == 0) {cout << "The port was disconnected due to hardware failure.\n";} if (strcmp(argv[1], "631") == 0) {cout << "The port was disconnected by the user.\n";} if (strcmp(argv[1], "632") == 0) {cout << "The structure size is incorrect.\n";} if (strcmp(argv[1], "633") == 0) {cout << "The port is already in use or is not configured for Remote Access dialout.\n";} if (strcmp(argv[1], "634") == 0) {cout << "Cannot register your computer on the remote network.\n";} if (strcmp(argv[1], "635") == 0) {cout << "Unknown error.\n";} if (strcmp(argv[1], "636") == 0) {cout << "The wrong device is attached to the port.\n";} if (strcmp(argv[1], "637") == 0) {cout << "The string could not be converted.\n";} if (strcmp(argv[1], "638") == 0) {cout << "The request has timed out.\n";} if (strcmp(argv[1], "639") == 0) {cout << "No asynchronous net available.\n";} if (strcmp(argv[1], "640") == 0) {cout << "A NetBIOS error has occurred.\n";} if (strcmp(argv[1], "641") == 0) {cout << "The server cannot allocate NetBIOS resources needed to support the client.\n";} if (strcmp(argv[1], "642") == 0) {cout << "One of your NetBIOS names is already registered on the remote network.\n";} if (strcmp(argv[1], "643") == 0) {cout << "A network adapter at the server failed.\n";} if (strcmp(argv[1], "644") == 0) {cout << "You will not receive network message popups.\n";} if (strcmp(argv[1], "645") == 0) {cout << "Internal authentication error.\n";} if (strcmp(argv[1], "646") == 0) {cout << "The account is not permitted to log on at this time of day.\n";} if (strcmp(argv[1], "647") == 0) {cout << "The account is disabled.\n";} if (strcmp(argv[1], "648") == 0) {cout << "The password has expired.\n";} if (strcmp(argv[1], "649") == 0) {cout << "The account does not have Remote Access permission.\n";} if (strcmp(argv[1], "650") == 0) {cout << "The Remote Access server is not responding.\n";} if (strcmp(argv[1], "651") == 0) {cout << "Your modem (or other connecting device) has reported an error.\n";} if (strcmp(argv[1], "652") == 0) {cout << "Unrecognized response from the device.\n";} if (strcmp(argv[1], "653") == 0) {cout << "A macro required by the device was not found in the device .INF file section.\n";} if (strcmp(argv[1], "654") == 0) {cout << "A command or response in the device .INF file section refers to an undefined macro\n";} if (strcmp(argv[1], "655") == 0) {cout << "The macro was not found in the device .INF file section.\n";} if (strcmp(argv[1], "656") == 0) {cout << "The macro in the device .INF file section contains an undefined macro\n";} if (strcmp(argv[1], "657") == 0) {cout << "The device .INF file could not be opened.\n";} if (strcmp(argv[1], "658") == 0) {cout << "The device name in the device .INF or media .INI file is too long.\n";} if (strcmp(argv[1], "659") == 0) {cout << "The media .INI file refers to an unknown device name.\n";} if (strcmp(argv[1], "660") == 0) {cout << "The device .INF file contains no responses for the command.\n";} if (strcmp(argv[1], "661") == 0) {cout << "The device .INF file is missing a command.\n";} if (strcmp(argv[1], "662") == 0) {cout << "Attempted to set a macro not listed in device .INF file section.\n";} if (strcmp(argv[1], "663") == 0) {cout << "The media .INI file refers to an unknown device type.\n";} if (strcmp(argv[1], "664") == 0) {cout << "Cannot allocate memory.\n";} if (strcmp(argv[1], "665") == 0) {cout << "The port is not configured for Remote Access.\n";} if (strcmp(argv[1], "666") == 0) {cout << "Your modem (or other connecting device) is not functioning.\n";} if (strcmp(argv[1], "667") == 0) {cout << "Cannot read the media .INI file.\n";} if (strcmp(argv[1], "668") == 0) {cout << "The connection dropped.\n";} if (strcmp(argv[1], "669") == 0) {cout << "The usage parameter in the media .INI file is invalid.\n";} if (strcmp(argv[1], "670") == 0) {cout << "Cannot read the section name from the media .INI file.\n";} if (strcmp(argv[1], "671") == 0) {cout << "Cannot read the device type from the media .INI file.\n";} if (strcmp(argv[1], "672") == 0) {cout << "Cannot read the device name from the media .INI file.\n";} if (strcmp(argv[1], "673") == 0) {cout << "Cannot read the usage from the media .INI file.\n";} if (strcmp(argv[1], "674") == 0) {cout << "Cannot read the maximum connection BPS rate from the media .INI file.\n";} if (strcmp(argv[1], "675") == 0) {cout << "Cannot read the maximum carrier BPS rate from the media .INI file.\n";} if (strcmp(argv[1], "676") == 0) {cout << "The line is busy.\n";} if (strcmp(argv[1], "677") == 0) {cout << "A person answered instead of a modem.\n";} if (strcmp(argv[1], "678") == 0) {cout << "There is no answer.\n";} if (strcmp(argv[1], "679") == 0) {cout << "Cannot detect carrier.\n";} if (strcmp(argv[1], "680") == 0) {cout << "There is no dial tone.\n";} if (strcmp(argv[1], "681") == 0) {cout << "General error reported by device.\n";} if (strcmp(argv[1], "682") == 0) {cout << "ERROR WRITING SECTIONNAME\n";} if (strcmp(argv[1], "683") == 0) {cout << "ERROR WRITING DEVICETYPE\n";} if (strcmp(argv[1], "684") == 0) {cout << "ERROR WRITING DEVICENAME\n";} if (strcmp(argv[1], "685") == 0) {cout << "ERROR WRITING MAXCONNECTBPS\n";} if (strcmp(argv[1], "686") == 0) {cout << "ERROR WRITING MAXCARRIERBPS\n";} if (strcmp(argv[1], "687") == 0) {cout << "ERROR WRITING USAGE\n";} if (strcmp(argv[1], "688") == 0) {cout << "ERROR WRITING DEFAULTOFF\n";} if (strcmp(argv[1], "689") == 0) {cout << "ERROR READING DEFAULTOFF\n";} if (strcmp(argv[1], "690") == 0) {cout << "ERROR EMPTY INI FILE\n";} if (strcmp(argv[1], "691") == 0) {cout << "Access denied because username and/or password is invalid on the domain.\n";} if (strcmp(argv[1], "692") == 0) {cout << "Hardware failure in port or attached device.\n";} if (strcmp(argv[1], "693") == 0) {cout << "ERROR NOT BINARY MACRO\n";} if (strcmp(argv[1], "694") == 0) {cout << "ERROR DCB NOT FOUND\n";} if (strcmp(argv[1], "695") == 0) {cout << "ERROR STATE MACHINES NOT STARTED\n";} if (strcmp(argv[1], "696") == 0) {cout << "ERROR STATE MACHINES ALREADY STARTED\n";} if (strcmp(argv[1], "697") == 0) {cout << "ERROR PARTIAL RESPONSE LOOPING\n";} if (strcmp(argv[1], "698") == 0) {cout << "A response keyname in the device .INF file is not in the expected format.\n";} if (strcmp(argv[1], "699") == 0) {cout << "The device response caused buffer overflow.\n";} if (strcmp(argv[1], "700") == 0) {cout << "The expanded command in the device .INF file is too long.\n";} if (strcmp(argv[1], "701") == 0) {cout << "The device moved to a BPS rate not supported by the COM driver.\n";} if (strcmp(argv[1], "702") == 0) {cout << "Device response received when none expected.\n";} if (strcmp(argv[1], "703") == 0) {cout << "ERROR INTERACTIVE MODE\n";} if (strcmp(argv[1], "704") == 0) {cout << "ERROR BAD CALLBACK NUMBER\n";} if (strcmp(argv[1], "705") == 0) {cout << "ERROR INVALID AUTH STATE\n";} if (strcmp(argv[1], "706") == 0) {cout << "ERROR WRITING INITBPS\n";} if (strcmp(argv[1], "707") == 0) {cout << "X.25 diagnostic indication.\n";} if (strcmp(argv[1], "708") == 0) {cout << "The account has expired.\n";} if (strcmp(argv[1], "709") == 0) {cout << "Error changing password on domain.\n";} if (strcmp(argv[1], "710") == 0) {cout << "Serial overrun errors were detected while communicating with your modem.\n";} if (strcmp(argv[1], "711") == 0) {cout << "RasMan initialization failure. Check the event log.\n";} if (strcmp(argv[1], "712") == 0) {cout << "Biplex port is initializing. Wait a few seconds and redial.\n";} if (strcmp(argv[1], "713") == 0) {cout << "No active ISDN lines are available.\n";} if (strcmp(argv[1], "714") == 0) {cout << "Not enough ISDN channels are available to make the call.\n";} if (strcmp(argv[1], "715") == 0) {cout << "Too many errors occurred because of poor phone line quality.\n";} if (strcmp(argv[1], "716") == 0) {cout << "The Remote Access IP configuration is unusable.\n";} if (strcmp(argv[1], "717") == 0) {cout << "No IP addresses are available in the static pool of Remote Access IP addresses.\n";} if (strcmp(argv[1], "718") == 0) {cout << "PPP timeout.\n";} if (strcmp(argv[1], "719") == 0) {cout << "PPP terminated by remote machine.\n";} if (strcmp(argv[1], "720") == 0) {cout << "No PPP control protocols configured.\n";} if (strcmp(argv[1], "721") == 0) {cout << "Remote PPP peer is not responding.\n";} if (strcmp(argv[1], "722") == 0) {cout << "The PPP packet is invalid.\n";} if (strcmp(argv[1], "723") == 0) {cout << "The phone number, including prefix and suffix, is too long.\n";} if (strcmp(argv[1], "724") == 0) {cout << "The IPX protocol cannot dial-out on the port because the computer is an IPX router.\n";} if (strcmp(argv[1], "725") == 0) {cout << "The IPX protocol cannot dial-in on the port because the IPX router is not installed..\n";} if (strcmp(argv[1], "726") == 0) {cout << "The IPX protocol cannot be used for dial-out on more than one port at a time.\n";} if (strcmp(argv[1], "727") == 0) {cout << "Cannot access TCPCFG.DLL.\n";} if (strcmp(argv[1], "728") == 0) {cout << "Cannot find an IP adapter bound to Remote Access.\n";} if (strcmp(argv[1], "729") == 0) {cout << "SLIP cannot be used unless the IP protocol is installed.\n";} if (strcmp(argv[1], "730") == 0) {cout << "Computer registration is not complete.\n";} if (strcmp(argv[1], "731") == 0) {cout << "The protocol is not configured.\n";} if (strcmp(argv[1], "732") == 0) {cout << "The PPP negotiation is not converging.\n";} if (strcmp(argv[1], "733") == 0) {cout << "The PPP control protocol for this network protocol is not available on the server.\n";} if (strcmp(argv[1], "734") == 0) {cout << "The PPP link control protocol terminated..\n";} if (strcmp(argv[1], "735") == 0) {cout << "The requested address was rejected by the server..\n";} if (strcmp(argv[1], "736") == 0) {cout << "The remote computer terminated the control protocol.\n";} if (strcmp(argv[1], "737") == 0) {cout << "Loopback detected..\n";} if (strcmp(argv[1], "738") == 0) {cout << "The server did not assign an address.\n";} if (strcmp(argv[1], "739") == 0) {cout << "The remote server cannot use the Windows NT encrypted password.\n";} if (strcmp(argv[1], "740") == 0) {cout << "The TAPI devices configured for Remote Access failed to initialize or were not installed correctly.\n";} if (strcmp(argv[1], "741") == 0) {cout << "The local computer does not support encryption.\n";} if (strcmp(argv[1], "742") == 0) {cout << "The remote server does not support encryption.\n";} if (strcmp(argv[1], "743") == 0) {cout << "The remote server requires encryption.\n";} if (strcmp(argv[1], "744") == 0) {cout << "Cannot use the IPX net number assigned by the remote server. Check the event log.\n";} if (strcmp(argv[1], "752") == 0) {cout << "A syntax error was encountered while processing a script.\n";} } return argc; }