用实际行动向cool_cool同志学习<br><br><br>去年的某个时候我译了一下有关网络出错的信息,不是很准确,给出来分享一下。<br>//---------------------------------------------------------------------------<br>#include <vcl.h><br>#pragma hdrstop<br>#include <lmerr.h><br>#include "errhandle.h"<br><br>//---------------------------------------------------------------------------<br>#pragma package(smart_init)<br><br>#define MYERRBASE 20000<br><br>#define USERNAMENULL MYERRBASE+1<br>#define IDENTITYCARDNULL MYERRBASE+2<br>#define LOGINNAMENULL MYERRBASE+3<br>#define USERSHFNULL MYERRBASE+4<br>#define PHONENULL MYERRBASE+5<br>#define STUDENTCARDNULL MYERRBASE+6<br>#define DOMAINNULL MYERRBASE+7<br>#define MAILACCOUNTNULL MYERRBASE+8<br>#define USERTYPENULL MYERRBASE+9<br>#define NETWORKTYPENULL MYERRBASE+10<br><br><br> //NERR_BASE=2100<br>DWORD errhandle(HWND hwnd,DWORD err,LPCTSTR lpCaption)<br>{<br> switch(err)<br> {<br> //网络相关错误处理----------------------------------------<br> case 5 : MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户无权访问指定资源")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break; // ERROR_ACCESS_DENIED =5<br> case NERR_NetNotStarted: MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此工作站的驱动器没有安装")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+2) /* The workstation driver is not installed. */<br> case NERR_UnknownServer: MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能定位此服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+3) /* The server could not be located. */<br> case NERR_ShareMem :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序导致一个内部错误,网络不能访问一个共享内存段")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+4) /* An internal error occurred. The network cannot access a shared memory segment. */<br><br> case NERR_NoNetworkResource:MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 网络资源不足")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+5) /* A network resource shortage occurred . */<br> case NERR_RemoteOnly :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 本操作不能在工作站上执行")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+6) /* This operation is not supported on workstations. */<br> case NERR_DevNotRedirected :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备没有连接")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+7) /* The device is not connected. */<br>/* NERR_BASE+8 is used for ERROR_CONNECTED_OTHER_PASSWORD */<br>/* UNUSED BASE+9 */<br>/* UNUSED BASE+10 */<br>/* UNUSED BASE+11 */<br>/* UNUSED BASE+12 */<br>/* UNUSED BASE+13 */<br> case NERR_ServerNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+14) /* The Server service is not started. */<br> case NERR_ItemNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 队列为空")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+15) /* The queue is empty. */<br> case NERR_UnknownDevDir :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备或目录不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+16) /* The device or directory does not exist. */<br> case NERR_RedirectedPath :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能重定位此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+17) /* The operation is invalid on a redirected resource. */<br> case NERR_DuplicateShare :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 共享名已存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+18) /* The name has already been shared. */<br> case NERR_NoRoom :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器此时已不响应资源请求")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+19) /* The server is currently out of the requested resource. */<br>/* UNUSED BASE+20 */<br> case NERR_TooManyItems :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 请求数超出最大许可")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+21) /* Requested addition of items exceeds the maximum allowed. */<br> case NERR_InvalidMaxUsers :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 点对点请求只能在同时存在两个的用户间")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+22) /* The Peer service supports only two simultaneous users. */<br> case NERR_BufTooSmall :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序导致一个内部错误,API请求的缓冲区设置过小")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+23) /* The API return buffer is too small. */<br>/* UNUSED BASE+24 */<br>/* UNUSED BASE+25 */<br>/* UNUSED BASE+26 */<br> case NERR_RemoteErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程API调用出错")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+27) /* A remote API error occurred. */<br>/* UNUSED BASE+28 */<br>/* UNUSED BASE+29 */<br>/* UNUSED BASE+30 */<br> case NERR_LanmanIniError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打开或读配置文件时出错")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+31) /* An error occurred when opening or reading the configuration file. */<br>/* UNUSED BASE+32 */<br>/* UNUSED BASE+33 */<br>/* UNUSED BASE+34 */<br>/* UNUSED BASE+35 */<br> case NERR_NetworkError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 一般网络错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+36) /* A general network error occurred. */<br> case NERR_WkstaInconsistentState:MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站服务处于不稳定状态,重新启动此服务前请重新启动机器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;// (NERR_BASE+37)<br> /* The Workstation service is in an inconsistent state. Restart the computer before restarting the Workstation service. */<br> case NERR_WkstaNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站服务没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+38) /* The Workstation service has not been started. */<br> case NERR_BrowserNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 请求的信息不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+39) /* The requested information is not available. */<br> case NERR_InternalError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序导致一个Windows NT内部错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+40) /* An internal Windows NT error occurred.*/<br> case NERR_BadTransactConfig :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器不支持事务")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+41) /* The server is not configured for transactions. */<br> case NERR_InvalidAPI :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 调用的API不支持远程服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+42) /* The requested API is not supported on the remote server. */<br> case NERR_BadEventName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 事件名不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+43) /* The event name is invalid. */<br> case NERR_DupNameReboot :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 网络中已存在此机器名,更改机器名重新启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+44) /* The computer name already exists on the network. Change it and restart the computer. */<br>/*<br> * Config API related<br> * Error codes from BASE+45 to BASE+49<br> */<br><br>/* UNUSED BASE+45 */<br> case NERR_CfgCompNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 配置信息中找不到指定的控件")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+46) /* The specified component could not be found in the configuration information. */<br> case NERR_CfgParamNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 配置信息中找不到指定参数")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+47) /* The specified parameter could not be found in the configuration information. */<br> case NERR_LineTooLong :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 配置文件中的某一行太长")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+49) /* A line in the configuration file is too long. */<br><br>/*<br> * Spooler API related<br> * Error codes from BASE+50 to BASE+79<br> */<br><br> case NERR_QNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的打印机不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+50) /* The printer does not exist. */<br> case NERR_JobNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的打印作业不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+51) /* The print job does not exist. */<br> case NERR_DestNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到目标打印机")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+52) /* The printer destination cannot be found. */<br> case NERR_DestExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 目标打印机已存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+53) /* The printer destination already exists. */<br> case NERR_QExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打印队列已存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+54) /* The printer queue already exists. */<br> case NERR_QNoRoom :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能再添加打印机")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+55) /* No more printers can be added. */<br> case NERR_JobNoRoom :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能再添加打印作业")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+56) /* No more print jobs can be added. */<br> case NERR_DestNoRoom :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能再添加目标打印机")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+57) /* No more printer destinations can be added. */<br> case NERR_DestIdle :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 目标打印机无效或不接受控制")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+58) /* This printer destination is idle and cannot accept control operations. */<br> case NERR_DestInvalidOp :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 目标打印机请求含有非法操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+59) /* This printer destination request contains an invalid control function. */<br> case NERR_ProcNoRespond :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打印进程没有响应")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+60) /* The print processor is not responding. */<br> case NERR_SpoolerNotLoaded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": spooler没有运行")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+61) /* The spooler is not running. */<br> case NERR_DestInvalidState :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 目标打印机在当前状态下不能执行此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+62) /* This operation cannot be performed on the print destination in its current state. */<br> case NERR_QInvalidState :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打印队列在当前状态不能执行此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+63) /* This operation cannot be performed on the printer queue in its current state. */<br> case NERR_JobInvalidState :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打印作业在当前状态下不能执行引操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+64) /* This operation cannot be performed on the print job in its current state. */<br> case NERR_SpoolNoMemory :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": spooler内存请求失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+65) /* A spooler memory allocation failure occurred. */<br> case NERR_DriverNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备驱动不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+66) /* The device driver does not exist. */<br> case NERR_DataTypeInvalid :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打印作业不支持的数据类型")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+67) /* The data type is not supported by the print processor. */<br> case NERR_ProcNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有安装打印进程")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+68) /* The print processor is not installed. */<br><br>/*<br> * Service API related<br> * Error codes from BASE+80 to BASE+99<br> */<br><br> case NERR_ServiceTableLocked :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务数据库被锁定")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+80) /* The service database is locked. */<br> case NERR_ServiceTableFull :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务表为空")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+81) /* The service table is full. */<br> case NERR_ServiceInstalled :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 请求的服务已经启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+82) /* The requested service has already been started. */<br> case NERR_ServiceEntryLocked :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务没有响应控制")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+83) /* The service does not respond to control actions. */<br> case NERR_ServiceNotInstalled :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+84) /* The service has not been started. */<br> case NERR_BadServiceName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务名不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+85) /* The service name is invalid. */<br> case NERR_ServiceCtlTimeout :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务没有响应控制功能")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+86) /* The service is not responding to the control function. */<br> case NERR_ServiceCtlBusy :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务控制忙")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+87) /* The service control is busy. */<br> case NERR_BadServiceProgName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 配置文件包含不存在的服务程序名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+88) /* The configuration file contains an invalid service program name. */<br> case NERR_ServiceNotCtrl :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务在当前状态下不能控制")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+89) /* The service could not be controlled in its present state. */<br> case NERR_ServiceKillProc :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务非正常终止")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+90) /* The service ended abnormally. */<br> case NERR_ServiceCtlNotValid :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 该服务不能终止或暂停")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+91) /* The requested pause or stop is not valid for this service. */<br> case NERR_NotInDispatchTbl :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务控制调度没有在调度表中找到服务名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+92) /* The service control dispatcher could not find the service name in the dispatch table. */<br> case NERR_BadControlRecv :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 读服务调度管道失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+93) /* The service control dispatcher pipe read failed. */<br> case NERR_ServiceNotStarting :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能为新服务创建一个线程")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+94) /* A thread for the new service could not be created. */<br><br>/*<br> * Wksta and Logon API related<br> * Error codes from BASE+100 to BASE+118<br> */<br><br> case NERR_AlreadyLoggedOn :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站已经登录到局域网")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+100) /* This workstation is already logged on to the local-area network. */<br> case NERR_NotLoggedOn :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站没有登录到局域网")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+101) /* The workstation is not logged on to the local-area network. */<br> case NERR_BadUsername :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户名或组名参数错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+102) /* The user name or group name parameter is invalid. */<br> case NERR_BadPassword :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 密码错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+103) /* The password parameter is invalid. */<br> case NERR_UnableToAddName_W :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 登录进程没有加消息别名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+104) /* @W The logon processor did not add the message alias. */<br> case NERR_UnableToAddName_F :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 登录进程没有加消息别名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+105) /* The logon processor did not add the message alias. */<br> case NERR_UnableToDelName_W :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 注销进程没有删除消息别名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+106) /* @W The logoff processor did not delete the message alias. */<br> case NERR_UnableToDelName_F :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 注销进程没有加消息别名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+107) /* The logoff processor did not delete the message alias. */<br>/* UNUSED BASE+108 */<br> case NERR_LogonsPaused :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 登录进程被中断")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+109) /* Network logons are paused. */<br> case NERR_LogonServerConflict :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 集中登录服务器冲突")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+110)/* A centralized logon-server conflict occurred. */<br> case NERR_LogonNoUserPath :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器没有配置有效的用户路径")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+111) /* The server is configured without a valid user path. */<br> case NERR_LogonScriptError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 运行登录脚本时发生错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+112) /* An error occurred while loading or running the logon script. */<br>/* UNUSED BASE+113 */<br> case NERR_StandaloneLogon :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有指定登录服务器,你的机器登录成独立的机器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+114) /* The logon server was not specified. Your computer will be logged on as STANDALONE. */<br> case NERR_LogonServerNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到指定的登录服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+115) /* The logon server could not be found. */<br> case NERR_LogonDomainExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 机器已经存在一个登录域")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+116) /* There is already a logon domain for this computer. */<br> case NERR_NonValidatedLogon :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 登录服务器不能验证登录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+117) /* The logon server could not validate the logon. */<br><br>/*<br> * ACF API related (access, user, group)<br> * Error codes from BASE+119 to BASE+149<br> */<br><br> case NERR_ACFNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到安全控制数据库")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+119) /* The security database could not be found. */<br> case NERR_GroupNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到指定的组名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+120) /* The group name could not be found. */<br> case NERR_UserNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到指定的用户名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+121) /* The user name could not be found. */<br> case NERR_ResourceNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到指定的资源名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+122) /* The resource name could not be found. */<br> case NERR_GroupExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 组已经存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+123) /* The group already exists. */<br> case NERR_UserExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户账号已经存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+124) /* The user account already exists. */<br> case NERR_ResourceExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 资源访问列表已经存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+125) /* The resource permission list already exists. */<br> case NERR_NotPrimary :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此操作只能在域的主域控制上进行")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+126) /* This operation is only allowed on the primary domain controller of the domain. */<br> case NERR_ACFNotLoaded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 安全数据库没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+127) /* The security database has not been started. */<br> case NERR_ACFNoRoom :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户账号数据库中名字过多")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+128) /* There are too many names in the user accounts database. */<br> case NERR_ACFFileIOFail :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 驱动器I/O操作失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+129) /* A disk I/O failure occurred.*/<br> case NERR_ACFTooManyLists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 超过了每资源64个项目的限制")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+130) /* The limit of 64 entries per resource was exceeded. */<br> case NERR_UserLogon :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能删除正一个打开会话的用户")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+131) /* Deleting a user with a session is not allowed. */<br> case NERR_ACFNoParent :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能够定位上一级目录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+132) /* The parent directory could not be located. */<br> case NERR_CanNotGrowSegment :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能添加到安全数据库会话高速缓冲区(cache)段")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+133) /* Unable to add to the security database session cache segment. */<br> case NERR_SpeGroupOp :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此操作不能对此特殊组(系统账号)进行")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+134) /* This operation is not allowed on this special group. */<br> case NERR_NotInCache :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 该用户没有使用用户账号数据库会话高速缓冲区(cache)")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+135) /* This user is not cached in user accounts database session cache. */<br> case NERR_UserInGroup :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户已经属于该组")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+136) /* The user already belongs to this group. */<br> case NERR_UserNotInGroup :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户不属于该组")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+137) /* The user does not belong to this group. */<br> case NERR_AccountUndefined :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户账号没有定义")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+138) /* This user account is undefined. */<br> case NERR_AccountExpired :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户账号已经过期")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+139) /* This user account has expired. */<br> case NERR_InvalidWorkstation :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户禁止从此工作站上登录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+140) /* The user is not allowed to log on from this workstation. */<br> case NERR_InvalidLogonHours :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户限制了不能在此时登录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+141) /* The user is not allowed to log on at this time. */<br> case NERR_PasswordExpired :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户口令已经过期")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+142) /* The password of this user has expired. */<br> case NERR_PasswordCantChange :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能更改此用户的密码")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+143) /* The password of this user cannot change. */<br> case NERR_PasswordHistConflict :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户口令不能在此时使用")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+144) /* This password cannot be used now. */<br> case NERR_PasswordTooShort :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 密码太短")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+145) /* The password is shorter than required. */<br> case NERR_PasswordTooRecent :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 新密码与旧密码太接近")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+146) /* The password of this user is too recent to change. */<br> case NERR_InvalidDatabase :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 完全数据库被中断")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+147) /* The security database is corrupted. */<br> case NERR_DatabaseUpToDate :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有必要复制网络/本地安全数据库(自上次同步以来没有变更)")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+148) /* No updates are necessary to this replicant network/local security database. */<br> case NERR_SyncRequired :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 数据库复本已经过时,请同步")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */<br><br>/*<br> * Use API related<br> * Error codes from BASE+150 to BASE+169<br> */<br><br> case NERR_UseNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有找到网络连接")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+150) /* The network connection could not be found. */<br> case NERR_BadAsgType :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的类型无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+151) /* This asg_type is invalid. */<br> case NERR_DeviceIsShared :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备当前正在(其他用户)共享")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+152) /* This device is currently being shared. */<br><br>/*<br> * Message Server related<br> * Error codes BASE+170 to BASE+209<br> */<br><br> case NERR_NoComputerName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 计算机名不能添加为一个消息别名,网络中可能存在同名计算机")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+170) /* The computer name could not be added as a message alias. The name may already exist on the network. */<br> case NERR_MsgAlreadyStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息服务已经启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+171) /* The Messenger service is already started. */<br> case NERR_MsgInitFailed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息服务启动失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+172) /* The Messenger service failed to start. */<br> case NERR_NameNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名不能在网络中找到")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+173) /* The message alias could not be found on the network. */<br> case NERR_AlreadyForwarded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名已经转发")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+174) /* This message alias has already been forwarded. */<br> case NERR_AddForwarded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名已添加但仍然被转发")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+175) /* This message alias has been added but is still forwarded. */<br> case NERR_AlreadyExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 本地已经存在此消息别名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+176) /* This message alias already exists locally. */<br> case NERR_TooManyNames :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 超过了最大的消息别名数")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+177) /* The maximum number of added message aliases has been exceeded. */<br> case NERR_DelComputerName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此计算机名不能被删除")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+178) /* The computer name could not be deleted.*/<br> case NERR_LocalForward :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名不能转发给同一工作站")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+179) /* Messages cannot be forwarded back to the same workstation. */<br> case NERR_GrpMsgProcessor :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 域消息进程出错")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+180) /* An error occurred in the domain message processor. */<br> case NERR_PausedRemote :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息已经发送,但容器中断了消息服务")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+181) /* The message was sent, but the recipient has paused the Messenger service. */<br> case NERR_BadReceive :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息已经发送,但没有接受")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+182) /* The message was sent but not received. */<br> case NERR_NameInUse :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名当前正在使用,请稍后再试")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+183) /* The message alias is currently in use. Try again later. */<br> case NERR_MsgNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息服务没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+184) /* The Messenger service has not been started. */<br> case NERR_NotLocalName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 名字不在本地计算机上")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+185) /* The name is not on the local computer. */<br> case NERR_NoForwardName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 转发的消息别名在网络中不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+186) /* The forwarded message alias could not be found on the network. */<br> case NERR_RemoteFull :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程站上的消息别名表已满")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+187) /* The message alias table on the remote station is full. */<br> case NERR_NameNotForwarded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 别名消息没有转发")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+188) /* Messages for this alias are not currently being forwarded. */<br> case NERR_TruncatedBroadcast :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 广播消息被删节")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+189) /* The broadcast message was truncated. */<br> case NERR_InvalidDevice :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 无效的设备名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+194) /* This is an invalid device name. */<br> case NERR_WriteFault :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 发生一个写错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+195) /* A write fault occurred. */<br>/* UNUSED BASE+196 */<br> case NERR_DuplicateName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 复制消息已经在网络中存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+197) /* A duplicate message alias exists on the network. */<br> case NERR_DeleteLater :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此消息别名将被删除")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+198) /* @W This message alias will be deleted later. */<br> case NERR_IncompleteDel :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 消息别名没有在所有的网络中成功删除")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+199) /* The message alias was not successfully deleted from all networks. */<br> case NERR_MultipleNets :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 在多重网络计算机上操作不支持")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+200) /* This operation is not supported on computers with multiple networks. */<br><br>/*<br> * Server API related<br> * Error codes BASE+210 to BASE+229<br> */<br><br> case NERR_NetNameNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 共享资源不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+210) /* This shared resource does not exist.*/<br> case NERR_DeviceNotShared :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备没有共享")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+211) /* This device is not shared. */<br> case NERR_ClientNameNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不在与此计算机名相关的会话")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+212) /* A session does not exist with that computer name. */<br> case NERR_FileIdNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此ID号的打开文件不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+214) /* There is not an open file with that identification number. */<br> case NERR_ExecFailure :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 执行远程管理指令时导致一个错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+215) /* A failure occurred when executing a remote administration command. */<br> case NERR_TmpFile :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 打开一个远程临时文件时发生错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+216) /* A failure occurred when opening a remote temporary file. */<br> case NERR_TooMuchData :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 从远程管理指令返回的数据被删除到64K")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+217) /* The data returned from a remote administration command has been truncated to 64K. */<br> case NERR_DeviceShareConflict :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备不能同时共享为spooled和非spooled资源")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+218) /* This device cannot be shared as both a spooled and a non-spooled resource. */<br> case NERR_BrowserTableIncomplete :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器列表的信息可能不正确")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+219) /* The information in the list of servers may be incorrect. */<br> case NERR_NotLocalDomain :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 域中的计算机没有活动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+220) /* The computer is not active in this domain. */<br> case NERR_IsDfsShare :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 共享肯定在删除前已经从分布式文件系统中撤销")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+221) /* The share must be removed from the Distributed File System before it can be deleted. */<br><br>/*<br> * CharDev API related<br> * Error codes BASE+230 to BASE+249<br> */<br><br>/* UNUSED BASE+230 */<br> case NERR_DevInvalidOpCode :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备不支持此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+231) /* The operation is invalid for this device. */<br> case NERR_DevNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备不能共享")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+232) /* This device cannot be shared. */<br> case NERR_DevNotOpen :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备没有打开")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+233) /* This device was not open. */<br> case NERR_BadQueueDevString :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备名列表无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+234) /* This device name list is invalid. */<br> case NERR_BadQueuePriority :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 队列的优先级无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+235) /* The queue priority is invalid. */<br> case NERR_NoCommDevs :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有共享的通信设备")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+237) /* There are no shared communication devices. */<br> case NERR_QueueNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的队列不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+238) /* The queue you specified does not exist. */<br> case NERR_BadDevString :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 队列列表不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+240) /* This list of devices is invalid. */<br> case NERR_BadDev :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 请求的设备不存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+241) /* The requested device is invalid. */<br> case NERR_InUseBySpooler :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备已经被spooler使用")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+242) /* This device is already in use by the spooler. */<br> case NERR_CommDevInUse :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备已经作为一个通信设备在使用")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+243) /* This device is already in use as a communication device. */<br><br>/*<br> * NetICanonicalize and NetIType and NetIMakeLMFileName<br> * NetIListCanon and NetINameCheck<br> * Error codes BASE+250 to BASE+269<br> */<br><br> case NERR_InvalidComputer :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 计算机名无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+251) /* This computer name is invalid. */<br>/* UNUSED BASE+252 */<br>/* UNUSED BASE+253 */<br> case NERR_MaxLenExceeded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的字符串和前缀太长")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+254) /* The string and prefix specified are too long. */<br>/* UNUSED BASE+255 */<br> case NERR_BadComponent :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 路径控件无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+256) /* This path component is invalid. */<br> case NERR_CantType :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能确定输入类型")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+257) /* Could not determine the type of input. */<br>/* UNUSED BASE+258 */<br>/* UNUSED BASE+259 */<br> case NERR_TooManyEntries :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 类型缓冲没有足够大")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+262) /* The buffer for types is not big enough. */<br><br>/*<br> * NetProfile<br> * Error codes BASE+270 to BASE+276<br> */<br><br> case NERR_ProfileFileTooBig :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 特征文件不能超过64K")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+270) /* Profile files cannot exceed 64K. */<br> case NERR_ProfileOffset :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 起始偏移超出范围")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+271) /* The start offset is out of range. */<br> case NERR_ProfileCleanup :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 系统不能删除当前与网络资源的连接")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+272) /* The system cannot delete current connections to network resources. */<br> case NERR_ProfileUnknownCmd :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 系统不能删除此文件中的命令行")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+273) /* The system was unable to parse the command line in this file.*/<br> case NERR_ProfileLoadErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 装载特征文件时发生错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+274) /* An error occurred while loading the profile file. */<br> case NERR_ProfileSaveErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 存储特征文件时发生错误,特征文件存储了一部分")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+275) /* @W Errors occurred while saving the profile file. The profile was partially saved. */<br><br><br>/*<br> * NetAudit and NetErrorLog<br> * Error codes BASE+277 to BASE+279<br> */<br><br> case NERR_LogOverflow :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 日志文件 %1 为空")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+277) /* Log file %1 is full. */<br> case NERR_LogFileChanged :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 日志文件在两次读操作之间已改变")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+278) /* This log file has changed between reads. */<br> case NERR_LogFileCorrupt :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 日志文件 %1 已坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+279) /* Log file %1 is corrupt. */<br><br><br>/*<br> * NetRemote<br> * Error codes BASE+280 to BASE+299<br> */<br> case NERR_SourceIsDir :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 源路径不能是一个目录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+280) /* The source path cannot be a directory. */<br> case NERR_BadSource :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 非法源路径")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+281) /* The source path is illegal. */<br> case NERR_BadDest :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 非法目的路径")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+282) /* The destination path is illegal. */<br> case NERR_DifferentServers :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 源路径和目的路径不在不同服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+283) /* The source and destination paths are on different servers. */<br>/* UNUSED BASE+284 */<br> case NERR_RunSrvPaused :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 请求的服务器已经中断")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+285) /* The Run server you requested is paused. */<br>/* UNUSED BASE+286 */<br>/* UNUSED BASE+287 */<br>/* UNUSED BASE+288 */<br> case NERR_ErrCommRunSrv :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 与一运行的服务器通信时发生错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+289) /* An error occurred when communicating with a Run server. */<br>/* UNUSED BASE+290 */<br> case NERR_ErrorExecingGhost :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 启动一后台进程时导致一个错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+291) /* An error occurred when starting a background process. */<br> case NERR_ShareNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 连接的共享资源现在找不到")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+292) /* The shared resource you are connected to could not be found.*/<br>/* UNUSED BASE+293 */<br>/* UNUSED BASE+294 */<br><br><br>/*<br> * NetWksta.sys (redir) returned error codes.<br> *<br> * NERR_BASE + (300-329)<br> */<br><br> case NERR_InvalidLana :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 局域网适配器编号无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+300) /* The LAN adapter number is invalid. */<br> case NERR_OpenFiles :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 连接中存在打开的文件")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+301) /* There are open files on the connection. */<br> case NERR_ActiveConns :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 已经存在活动的连接")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+302) /* Active connections still exist. */<br> case NERR_BadPasswordCore :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 共享名密码无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+303) /* This share name or password is invalid. */<br> case NERR_DevInUse :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备正为一活动进程所访问")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+304) /* The device is being accessed by an active process. */<br> case NERR_LocalDrive :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 驱动名正被本地驱动器使用")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+305) /* The drive letter is in use locally. */<br><br>/*<br> * Alert error codes.<br> *<br> * NERR_BASE + (330-339)<br> */<br> case NERR_AlertExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的客户已注册为指定的事件")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+330) /* The specified client is already registered for the specified event. */<br> case NERR_TooManyAlerts :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 警报表已满")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+331) /* The alert table is full. */<br> case NERR_NoSuchAlert :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 引发一个无效的或不存在的警报名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+332) /* An invalid or nonexistent alert name was raised. */<br> case NERR_BadRecipient :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 警报容器无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+333) /* The alert recipient is invalid.*/<br> case NERR_AcctLimitExceeded :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 一个用户与服务器的会话已删除,因为用户的登录时效已到")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+334) /* A user's session with this server has been deleted, because the user's logon hours are no longer valid. */<br><br>/*<br> * Additional Error and Audit log codes.<br> *<br> * NERR_BASE +(340-343)<br> */<br> case NERR_InvalidLogSeek :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 日志文件没有包含请求的记录号")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+340) /* The log file does not contain the requested record number. */<br>/* UNUSED BASE+341 */<br>/* UNUSED BASE+342 */<br>/* UNUSED BASE+343 */<br><br>/*<br> * Additional UAS and NETLOGON codes<br> *<br> * NERR_BASE +(350-359)<br> */<br> case NERR_BadUasConfig :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 用户账号数据库没有配置正确")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+350) /* The user accounts database is not configured correctly. */<br> case NERR_InvalidUASOp :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": Netlogon服务运行时禁止此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+351) /* This operation is not permitted when the Netlogon service is running. */<br> case NERR_LastAdmin :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能对系统最后一个管理员账号进行此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+352) /* This operation is not allowed on the last administrative account. */<br> case NERR_DCNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到域的域控制器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+353) /* Could not find domain controller for this domain. */<br> case NERR_LogonTrackingError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能为此用户设置登录信息")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+354) /* Could not set logon information for this user. */<br> case NERR_NetlogonNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": Netlogon服务没有启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+355) /* The Netlogon service has not been started. */<br> case NERR_CanNotGrowUASFile :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能添加到用户账号数据库")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+356) /* Unable to add to the user accounts database. */<br> case NERR_TimeDiffAtDC :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器的时钟与主域控制器的时钟不同步")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+357) /* This server's clock is not synchronized with the primary domain controller's clock. */<br> case NERR_PasswordMismatch :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 侦测到一个密码不匹配")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+358) /* A password mismatch has been detected. */<br><br><br>/*<br> * Server Integration error codes.<br> *<br> * NERR_BASE +(360-369)<br> */<br> case NERR_NoSuchServer :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器ID没有指定一个可用的服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+360) /* The server identification does not specify a valid server. */<br> case NERR_NoSuchSession :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 会话ID没有指定一个可用的会话")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+361) /* The session identification does not specify a valid session. */<br> case NERR_NoSuchConnection :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 连接ID没有指定一个可用的连接")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+362) /* The connection identification does not specify a valid connection. */<br> case NERR_TooManyServers :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 可用的服务器表中没有空间提供给另一项")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+363) /* There is no space for another entry in the table of available servers. */<br> case NERR_TooManySessions :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器会话数达到它支持的极限")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+364) /* The server has reached the maximum number of sessions it supports. */<br> case NERR_TooManyConnections :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器连接数达到它支持的极限")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+365) /* The server has reached the maximum number of connections it supports. */<br> case NERR_TooManyFiles :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器再不能打开文件,因为打开文件数已经达到最大数")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+366) /* The server cannot open more files because it has reached its maximum number. */<br> case NERR_NoAlternateServers :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务器没有注册后备服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+367) /* There are no alternate servers registered on this server. */<br>/* UNUSED BASE+368 */<br>/* UNUSED BASE+369 */<br><br> case NERR_TryDownLevel :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": API调用错误,请试用下一层次(远程管理协议)的API,代替。")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+370) /* Try down-level (remote admin protocol) version of API instead. */<br><br>/*<br> * UPS error codes.<br> *<br> * NERR_BASE + (380-384)<br> */<br> case NERR_UPSDriverNotStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": UPS服务不能访问UPS设备")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+380) /* The UPS driver could not be accessed by the UPS service. */<br> case NERR_UPSInvalidConfig :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": UPS服务没有配置正确")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+381) /* The UPS service is not configured correctly. */<br> case NERR_UPSInvalidCommPort :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": UPS服务不能访问指定的通讯端口")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+382) /* The UPS service could not access the specified Comm Port. */<br> case NERR_UPSSignalAsserted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": UPS呈线路错误或低电池不足状态,服务不能启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+383) /* The UPS indicated a line fail or low battery situation. Service not started. */<br> case NERR_UPSShutdownFailed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": UPS服务不能成功执行系统关闭")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+384) /* The UPS service failed to perform a system shut down. */<br><br>/*<br> * Remoteboot error codes.<br> *<br> * NERR_BASE + (400-419)<br> * Error codes 400 - 405 are used by RPLBOOT.SYS.<br> * Error codes 403, 407 - 416 are used by RPLLOADR.COM,<br> * Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE).<br> * Error code 418 is for when REMOTEBOOT can't start<br> * Error code 419 is for a disallowed 2nd rpl connection<br> *<br> */<br> case NERR_BadDosRetCode :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序返回一个MS-DOS错误代码")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+400) /* The program below returned an MS-DOS error code:*/<br> case NERR_ProgNeedsExtraMem :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序需要更多的内存")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+401) /* The program below needs more memory:*/<br> case NERR_BadDosFunction :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 程序调用一个不支持MS-DOS的函数")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+402) /* The program below called an unsupported MS-DOS function:*/<br> case NERR_RemoteBootFailed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站不能启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+403) /* The workstation failed to boot.*/<br> case NERR_BadFileCheckSum :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 文件错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+404) /* The file below is corrupt.*/<br> case NERR_NoRplBootSystem :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 启动定义文件中没有指定加载系统")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+405) /* No loader is specified in the boot-block definition file.*/<br> case NERR_RplLoadrNetBiosErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": NETBIOS返回一个错误:NCB 和 SMB 已卸载")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/<br> case NERR_RplLoadrDiskErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 设备I/O错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+407) /* A disk I/O error occurred.*/<br> case NERR_ImageParamErr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 镜像参数转换失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+408) /* Image parameter substitution failed.*/<br> case NERR_TooManyImageParams :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 跨过磁盘扇区边界的镜像参数太多")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+409) /* Too many image parameters cross disk sector boundaries.*/<br> case NERR_NonDosFloppyUsed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 镜像不是由MS-DOS的format/s生成的")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+410) /* The image was not generated from an MS-DOS diskette formatted with /S.*/<br> case NERR_RplBootRestart :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程启动稍后将重新启动")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+411) /* Remote boot will be restarted later.*/<br> case NERR_RplSrvrCallFailed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程启动服务调用失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+412) /* The call to the Remoteboot server failed.*/<br> case NERR_CantConnectRplSrvr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能连接远程启动服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+413) /* Cannot connect to the Remoteboot server.*/<br> case NERR_CantOpenImageFile :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能打开远程启动服务器上的镜像文件")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+414) /* Cannot open image file on the Remoteboot server.*/<br> case NERR_CallingRplSrvr :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 连接远程启动服务器中...")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+415) /* Connecting to the Remoteboot server...*/<br> case NERR_StartingRplBoot :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 连接远程启动服务器中...")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+416) /* Connecting to the Remoteboot server...*/<br> case NERR_RplBootServiceTerm :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程启动服务已停止,检查日志以查找问题起因")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+417) /* Remote boot service was stopped; check the error log for the cause of the problem.*/<br> case NERR_RplBootStartFailed :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 远程启动引导失败,检查日志以查找问题起因")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+418) /* Remote boot startup failed; check the error log for the cause of the problem.*/<br> case NERR_RPL_CONNECTED :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不允许两次连接远程启动资源")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+419) /* A second connection to a Remoteboot resource is not allowed.*/<br><br>/*<br> * FTADMIN API error codes<br> *<br> * NERR_BASE + (425-434)<br> *<br> * (Currently not used in NT)<br> *<br> */<br><br>/*<br> * Browser service API error codes<br> *<br> * NERR_BASE + (450-475)<br> *<br> */<br> case NERR_BrowserConfiguredToNotRun :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 浏览服务配置了MaintainServerList=No")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+450) /* The browser service was configured with MaintainServerList=No. */<br><br>/*<br> * Additional Remoteboot error codes.<br> *<br> * NERR_BASE + (510-550)<br> */<br> case NERR_RplNoAdaptersStarted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务启动失败因为没有一块网卡启动了此服务")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+510) /*Service failed to start since none of the network adapters started with this service.*/<br> case NERR_RplBadRegistry :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 注册表启动信息坏导致服务启动失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+511) /*Service failed to start due to bad startup information in the registry.*/<br> case NERR_RplBadDatabase :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务启动失败因为其数据库不存在或已坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+512) /*Service failed to start because its database is absent or corrupt.*/<br> case NERR_RplRplfilesShare :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务失败因为缺少请求参数表文件共享")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+513) /*Service failed to start because RPLFILES share is absent.*/<br> case NERR_RplNotRplServer :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务失败因为缺少请求参数表用户组")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+514) /*Service failed to start because RPLUSER group is absent.*/<br> case NERR_RplCannotEnum :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能列举服务记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+515) /*Cannot enumerate service records.*/<br> case NERR_RplWkstaInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+516) /*Workstation record information has been corrupted.*/<br> case NERR_RplWkstaNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到工作站记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+517) /*Workstation record was not found.*/<br> case NERR_RplWkstaNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它工作站使用了此工作名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+518) /*Workstation name is in use by some other workstation.*/<br> case NERR_RplProfileInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 特征记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+519) /*Profile record information has been corrupted.*/<br> case NERR_RplProfileNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到特征记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+520) /*Profile record was not found.*/<br> case NERR_RplProfileNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它特征使用了此名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+521) /*Profile name is in use by some other profile.*/<br> case NERR_RplProfileNotEmpty :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 一些工作站使用了此特征")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+522) /*There are workstations using this profile.*/<br> case NERR_RplConfigInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 配置记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+523) /*Configuration record information has been corrupted.*/<br> case NERR_RplConfigNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到配置记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+524) /*Configuration record was not found.*/<br> case NERR_RplAdapterInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 适配器ID记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+525) /*Adapter id record information has been corrupted.*/<br> case NERR_RplInternal :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 发生一个内部服务错误")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+526) /*An internal service error has occurred.*/<br> case NERR_RplVendorInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 供应商ID记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+527) /*Vendor id record information has been corrupted.*/<br> case NERR_RplBootInfoCorrupted :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 启动块记录信息已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+528) /*Boot block record information has been corrupted.*/<br> case NERR_RplWkstaNeedsUserAcct :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 此计算机记录的用户账号丢失")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+529) /*The user account for this workstation record is missing.*/<br> case NERR_RplNeedsRPLUSERAcct :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到请求参数表用户本地组")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+530) /*The RPLUSER local group could not be found.*/<br> case NERR_RplBootNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到启动块记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+531) /*Boot block record was not found.*/<br> case NERR_RplIncompatibleProfile :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 工作站与特征文件不符合")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+532) /*Chosen profile is incompatible with this workstation.*/<br> case NERR_RplAdapterNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它工作站使用了选择的网卡ID")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+533) /*Chosen network adapter id is in use by some other workstation.*/<br> case NERR_RplConfigNotEmpty :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 已经有其它特征文件使用了此配置")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+534) /*There are profiles using this configuration.*/<br> case NERR_RplBootInUse :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 已经有工作站、特征文件或配置使用了此启动块")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+535) /*There are workstations, profiles or configurations using this boot block.*/<br> case NERR_RplBackupDatabase :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 服务备份远程启动数据库失败")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+536) /*Service failed to backup Remoteboot database.*/<br> case NERR_RplAdapterNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到适配器记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+537) /*Adapter record was not found.*/<br> case NERR_RplVendorNotFound :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 找不到供应商记录")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+538) /*Vendor record was not found.*/<br> case NERR_RplVendorNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它供应商记录已使用了此名字")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+539) /*Vendor name is in use by some other vendor record.*/<br> case NERR_RplBootNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它启动块记录已使用了此(启动名、供应商ID)")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+540) /*(boot name, vendor id) is in use by some other boot block record.*/<br> case NERR_RplConfigNameUnavailable :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 其它配置已使用了此名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+541) /*Configuration name is in use by some other configuration.*/<br><br>/**INTERNAL_ONLY**/<br><br>/*<br> * Dfs API error codes.<br> *<br> * NERR_BASE + (560-590)<br> */<br><br> case NERR_DfsInternalCorruption :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 分布式文件系统维护的内部数据库已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+560) /*The internal database maintained by the Dfs service is corrupt*/<br> case NERR_DfsVolumeDataCorrupt :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 内部分布式文件系统数据库的一条记录已损坏")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+561) /*One of the records in the internal Dfs database is corrupt*/<br> case NERR_DfsNoSuchVolume :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 没有卷上存在与输入项匹配的路径项")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+562) /*There is no volume whose entry path matches the input Entry Path*/<br> case NERR_DfsVolumeAlreadyExists :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的卷名已存在")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+563) /*A volume with the given name already exists*/<br> case NERR_DfsAlreadyShared :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 分布式文件系统中已存在与指定名相同的共享")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+564) /*The server share specified is already shared in the Dfs*/<br> case NERR_DfsNoSuchShare :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的服务器共享不支持指定的分布式文件系统卷")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+565) /*The indicated server share does not support the indicated Dfs volume*/<br> case NERR_DfsNotALeafVolume :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 操作对一个无叶结点的卷无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+566) /*The operation is not valid on a non-leaf volume*/<br> case NERR_DfsLeafVolume :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 操作对一个存在叶结点的卷无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+567) /*The operation is not valid on a leaf volume*/<br> case NERR_DfsVolumeHasMultipleServers :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 操作有岐义因为卷提供多重服务")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+568) /*The operation is ambiguous because the volume has multiple servers*/<br> case NERR_DfsCantCreateJunctionPoint :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 不能创建一个连接点")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+569) /*Unable to create a junction point*/<br> case NERR_DfsServerNotDfsAware :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 分布式文件系统不能感知服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+570) /*The server is not Dfs Aware*/<br> case NERR_DfsBadRenamePath :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的目标路径无效")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+571) /*The specified rename target path is invalid*/<br> case NERR_DfsVolumeIsOffline :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的分布式文件系统卷没有联机")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+572) /*The specified Dfs volume is offline*/<br> case NERR_DfsNoSuchServer :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 指定的服务器不是该卷所在服务器")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+573) /*The specified server is not a server for this volume*/<br> case NERR_DfsCyclicalName :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 侦测到存在分布式文件系统名")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+574) /*A cycle in the Dfs name was detected*/<br> case NERR_DfsNotSupportedInServerDfs :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 基于服务器的分布式文件系统不支持此操作")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+575) /*The operation is not supported on a server-based Dfs*/<br> case NERR_DfsInternalError :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 分布式文件系统内部错")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+590) /*Dfs internal error*/<br><br>/*<br> * Net setup error codes.<br> *<br> * NERR_BASE + (591-595)<br> */<br> case NERR_SetupAlreadyJoined :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 计算机已经加入到一个域中")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+591) /*This machine is already joined to a domain.*/<br> case NERR_SetupNotJoined :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 计算机没有加入到一个域中")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+592) /*This machine is not currently joined to a domain.*/<br> case NERR_SetupDomainController :MessageBox(hwnd,AnsiString(AnsiString("错误 ")+AnsiString(IntToStr(err))+AnsiString(": 计算机是域的一个控制器,不能从域中移走")).c_str(),lpCaption,MB_APPLMODAL|MB_OK|MB_ICONWARNING);<br> break;//(NERR_BASE+593) /*This machine is a domain controller and cannot be unjoined from a domain.*/<br> }<br> return err;<br> }<br>