小弟收集了些windows消息的用法,特与大家共享(200分)

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

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
816
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
后退
顶部