📄 srcshareerr.cpp
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "srcShareErr.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
char *GetNetErrorString(int ErrorNumber)
{
AnsiString Result;
switch( ErrorNumber )
{
case NERR_Success : Result = "No Error.";break;
case NERR_DLLNotLoaded : Result = "无法加载 NETAPI32.DLL(NT) 或 SVRAPI.DLL(Win9x). 请重新设置文件与打印共享!";break;
case NERR_NetNotStarted : Result = "The workstation driver is not installed.";break;
case NERR_UnknownServer : Result = "The server could not be located.";break;
case NERR_ShareMem : Result = "An internal error occurred. The network cannot access a shared memory segment.";break;
case NERR_NoNetworkResource : Result = "A network resource shortage occurred.";break;
case NERR_RemoteOnly : Result = "This operation is not supported on workstations.";break;
case NERR_DevNotRedirected : Result = "The device is not connected.";break;
case NERR_ServerNotStarted : Result = "The Server service is not started.";break;
case NERR_ItemNotFound : Result = "The queue is empty.";break;
case NERR_UnknownDevDir : Result = "The device or directory does not exist.";break;
case NERR_RedirectedPath : Result = "The operation is invalid on a redirected resource.";break;
case NERR_DuplicateShare : Result = "The name has already been shared.";break;
case NERR_NoRoom : Result = "The server is currently out of the requested resource.";break;
case NERR_TooManyItems : Result = "Requested addition of items exceeds the maximum allowed.";break;
case NERR_InvalidMaxUsers : Result = "The Peer service supports only two simultaneous users.";break;
case NERR_BufTooSmall : Result = "The API return buffer is too small.";break;
case NERR_RemoteErr : Result = "A remote API error occurred.";break;
case NERR_LanmanIniError : Result = "An error occurred when opening or reading the configuration file.";break;
case NERR_NetworkError : Result = "A general network error occurred.";break;
case NERR_WkstaInconsistentState : Result = "The Workstation service is in an inconsistent state. Restart the computer before restarting the Workstation service.";break;
case NERR_WkstaNotStarted : Result = "The Workstation service has not been started.";break;
case NERR_BrowserNotStarted : Result = "The requested information is not available.";break;
case NERR_InternalError : Result = "An internal Windows NT error occurred.";break;
case NERR_BadTransactConfig : Result = "The server is not configured for transactions.";break;
case NERR_InvalidAPI : Result = "The requested API is not supported on the remote server.";break;
case NERR_BadEventName : Result = "The event name is invalid.";break;
case NERR_DupNameReboot : Result = "The computer name already exists on the network. Change it and restart the computer.";break;
case NERR_CfgCompNotFound : Result = "The specified component could not be found in the configuration information.";break;
case NERR_CfgParamNotFound : Result = "The specified parameter could not be found in the configuration information.";break;
case NERR_LineTooLong : Result = "A line in the configuration file is too long.";break;
case NERR_QNotFound : Result = "The printer does not exist.";break;
case NERR_JobNotFound : Result = "The print job does not exist.";break;
case NERR_DestNotFound : Result = "The printer destination cannot be found.";break;
case NERR_DestExists : Result = "The printer destination already exists.";break;
case NERR_QExists : Result = "The printer queue already exists.";break;
case NERR_QNoRoom : Result = "No more printers can be added.";break;
case NERR_JobNoRoom : Result = "No more print jobs can be added.";break;
case NERR_DestNoRoom : Result = "No more printer destinations can be added.";break;
case NERR_DestIdle : Result = "This printer destination is idle and cannot accept control operations.";break;
case NERR_DestInvalidOp : Result = "This printer destination request contains an invalid control function.";break;
case NERR_ProcNoRespond : Result = "The print processor is not responding.";break;
case NERR_SpoolerNotLoaded : Result = "The spooler is not running.";break;
case NERR_DestInvalidState : Result = "This operation cannot be performed on the print destination in its current state.";break;
case NERR_QInvalidState : Result = "This operation cannot be performed on the printer queue in its current state.";break;
case NERR_JobInvalidState : Result = "This operation cannot be performed on the print job in its current state.";break;
case NERR_SpoolNoMemory : Result = "A spooler memory allocation failure occurred.";break;
case NERR_DriverNotFound : Result = "The device driver does not exist.";break;
case NERR_DataTypeInvalid : Result = "The data type is not supported by the print processor.";break;
case NERR_ProcNotFound : Result = "The print processor is not installed.";break;
case NERR_ServiceTableLocked : Result = "The service database is locked.";break;
case NERR_ServiceTableFull : Result = "The service table is full.";break;
case NERR_ServiceInstalled : Result = "The requested service has already been started.";break;
case NERR_ServiceEntryLocked : Result = "The service does not respond to control actions.";break;
case NERR_ServiceNotInstalled : Result = "The service has not been started.";break;
case NERR_BadServiceName : Result = "The service name is invalid.";break;
case NERR_ServiceCtlTimeout : Result = "The service is not responding to the control function.";break;
case NERR_ServiceCtlBusy : Result = "The service control is busy.";break;
case NERR_BadServiceProgName : Result = "The configuration file contains an invalid service program name.";break;
case NERR_ServiceNotCtrl : Result = "The service could not be controlled in its present state.";break;
case NERR_ServiceKillProc : Result = "The service ended abnormally.";break;
case NERR_ServiceCtlNotValid : Result = "The requested pause or stop is not valid for this service.";break;
case NERR_NotInDispatchTbl : Result = "The service control dispatcher could not find the service name in the dispatch table.";break;
case NERR_BadControlRecv : Result = "The service control dispatcher pipe read failed.";break;
case NERR_ServiceNotStarting : Result = "A thread for the new service could not be created.";break;
case NERR_AlreadyLoggedOn : Result = "This workstation is already logged on to the local-area network.";break;
case NERR_NotLoggedOn : Result = "The workstation is not logged on to the local-area network.";break;
case NERR_BadUsername : Result = "The user name or group name parameter is invalid.";break;
case NERR_BadPassword : Result = "The password parameter is invalid.";break;
case NERR_UnableToAddName_W : Result = "@W The logon processor did not add the message alias.";break;
case NERR_UnableToAddName_F : Result = "The logon processor did not add the message alias.";break;
case NERR_UnableToDelName_W : Result = "@W The logoff processor did not delete the message alias.";break;
case NERR_UnableToDelName_F : Result = "The logoff processor did not delete the message alias.";break;
case NERR_LogonsPaused : Result = "Network logons are paused.";break;
case NERR_LogonServerConflict : Result = "A centralized logon-server conflict occurred.";break;
case NERR_LogonNoUserPath : Result = "The server is configured without a valid user path.";break;
case NERR_LogonScriptError : Result = "An error occurred while loading or running the logon script.";break;
case NERR_StandaloneLogon : Result = "The logon server was not specified. Your computer will be logged on as STANDALONE.";break;
case NERR_LogonServerNotFound : Result = "The logon server could not be found.";break;
case NERR_LogonDomainExists : Result = "There is already a logon domain for this computer.";break;
case NERR_NonValidatedLogon : Result = "The logon server could not validate the logon.";break;
case NERR_ACFNotFound : Result = "The security database could not be found.";break;
case NERR_GroupNotFound : Result = "The group name could not be found.";break;
case NERR_UserNotFound : Result = "The user name could not be found.";break;
case NERR_ResourceNotFound : Result = "The resource name could not be found.";break;
case NERR_GroupExists : Result = "The group already exists.";break;
case NERR_UserExists : Result = "The user account already exists.";break;
case NERR_ResourceExists : Result = "The resource permission list already exists.";break;
case NERR_NotPrimary : Result = "This operation is only allowed on the primary domain controller of the domain.";break;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -