⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 neterr.h

📁 Dos6.0
💻 H
📖 第 1 页 / 共 2 页
字号:
/********************************************************************/
/**                     Microsoft LAN Manager                      **/
/**               Copyright(c) Microsoft Corp., 1987-1990          **/
/********************************************************************/

/***	neterr.h - network error definitions
 *
 */



#ifndef NETERR_INCLUDED

#define NETERR_INCLUDED 


#define NERR_Success		0	/* Success */

/*
 *	Redirector related
 *		Error codes from 50 to 79, 88, and 230 to 249
 */

#define ERROR_NOT_SUPPORTED	50	/* The network request is not supported.  */
#define ERROR_REM_NOT_LIST	51	/* This remote computer is not listening. */
#define ERROR_DUP_NAME		52	/* A duplicate name exists on the network. */
#define ERROR_BAD_NETPATH	53	/* The network path cannot be located. */
#define ERROR_NETWORK_BUSY	54	/* The network is busy. */
#define ERROR_DEV_NOT_EXIST	55	/* This device does not exist on the network. */
#define ERROR_TOO_MANY_CMDS	56	/* The network BIOS command limit has been reached. */
#define ERROR_ADAP_HDW_ERR	57	/* A network adapter hardware error has occurred. */
#define ERROR_BAD_NET_RESP	58	/* The network responded incorrectly. */
#define ERROR_UNEXP_NET_ERR	59	/* An unexpected network error occurred. */
#define ERROR_BAD_REM_ADAP	60	/* The remote adapter is not compatible. */
#define ERROR_PRINTQ_FULL	61	/* The printer queue is full. */
#define ERROR_NO_SPOOL_SPACE	62	/* Space to store the file waiting to be printed is not available on the server. */
#define ERROR_PRINT_CANCELLED	63	/* The requested print file has been cancelled. */
#define ERROR_NETNAME_DELETED	64	/* The network name was deleted. */
#define	ERROR_NETWORK_ACCESS_DENIED 65	/* Network access is denied. */
#define ERROR_BAD_DEV_TYPE	66	/* The network resource type is not correct. */
#define ERROR_BAD_NET_NAME	67	/* The network name cannot be found. */
#define ERROR_TOO_MANY_NAMES	68	/* The name limit for the local computer network adapter card was exceeded. */
#define ERROR_TOO_MANY_SESS	69	/* The network BIOS session limit was exceeded. */
#define ERROR_SHARING_PAUSED	70	/* File sharing has been temporarily paused. */
#define ERROR_REQ_NOT_ACCEP	71	/* The network request was not accepted. */
#define ERROR_REDIR_PAUSED	72	/* Print or disk redirection is temporarily paused. */

#define ERROR_NET_WRITE_FAULT	88	/* A network data fault occurred. */

#define	ERROR_BAD_PIPE		230	/* This is a nonexistent pipe or an invalid operation. */
#define	ERROR_PIPE_BUSY		231	/* The specified pipe is busy. */
#define	ERROR_NO_DATA		232	/* There is no data to be read on a non-blocking read. */
#define	ERROR_PIPE_NOT_CONNECTED 233	/* The server disconnected the pipe. */
#define	ERROR_MORE_DATA		234	/* Additional data is available. */

#define	ERROR_VC_DISCONNECTED	240	/* The session was cancelled. */


/***	NERR_BASE is the base of error codes from network utilities,
 *	chosen to avoid conflict with OS/2 and redirector error codes.
 *	2100 is a value that has been assigned to us by OS/2.
 */
#define	NERR_BASE	2100



/* UNUSED BASE+0 */
/* UNUSED BASE+1 */
#define NERR_NetNotStarted	(NERR_BASE+2)	/* The workstation driver (NETWKSTA.SYS on OS/2 workstations, NETWKSTA.EXE on DOS workstations) isn't installed. */
#define NERR_UnknownServer	(NERR_BASE+3)	/* The server cannot be located. */
#define NERR_ShareMem		(NERR_BASE+4)	/* An internal error occurred.  The network cannot access a shared memory segment. */
#define NERR_NoNetworkResource	(NERR_BASE+5)	/* A network resource shortage occurred . */
#define NERR_RemoteOnly		(NERR_BASE+6)	/* This operation is not supported on workstations. */
#define NERR_DevNotRedirected	(NERR_BASE+7)	/* The device is not connected. */
/* UNUSED BASE+8 */
/* UNUSED BASE+9 */
/* UNUSED BASE+10 */
/* UNUSED BASE+11 */
/* UNUSED BASE+12 */
/* UNUSED BASE+13 */
#define NERR_ServerNotStarted	(NERR_BASE+14)	/* The Server service isn't started. */
#define NERR_ItemNotFound	(NERR_BASE+15)	/* The queue is empty. */
#define NERR_UnknownDevDir	(NERR_BASE+16)	/* The device or directory does not exist. */
#define NERR_RedirectedPath	(NERR_BASE+17)	/* The operation is invalid on a redirected resource. */
#define NERR_DuplicateShare	(NERR_BASE+18)	/* The name has already been shared. */
#define NERR_NoRoom		(NERR_BASE+19)	/* The server is currently out of the requested resource. */
/* UNUSED BASE+20 */
#define NERR_TooManyItems	(NERR_BASE+21)	/* Requested add of item exceeds maximum allowed. */
#define NERR_InvalidMaxUsers	(NERR_BASE+22)	/* The Peer service supports only two simultaneous users. */
#define NERR_BufTooSmall	(NERR_BASE+23)	/* The API return buffer is too small. */
/* UNUSED BASE+24 */
/* UNUSED BASE+25 */
/* UNUSED BASE+26 */
#define NERR_RemoteErr		(NERR_BASE+27)	/* A remote API error occurred.  */
/* UNUSED BASE+28 */
/* UNUSED BASE+29 */
/* UNUSED BASE+30 */
#define NERR_LanmanIniError	(NERR_BASE+31)	/* An error occurred when opening or reading LANMAN.INI. */
/* UNUSED BASE+32 */
/* UNUSED BASE+33 */
#define NERR_OS2IoctlError	(NERR_BASE+34)	/* An internal error occurred when calling the workstation driver. */
/* UNUSED BASE+35 */
#define	NERR_NetworkError	(NERR_BASE+36)	/* A general network error occurred. */
/* UNUSED BASE+37 */
#define NERR_WkstaNotStarted	(NERR_BASE+38)	/* The Workstation service has not been started. */
#define NERR_BrowserNotStarted	(NERR_BASE+39)	/* The requested information is not available. */
#define NERR_InternalError	(NERR_BASE+40)	/* An internal LAN Manager error occurred.*/
#define NERR_BadTransactConfig	(NERR_BASE+41)	/* The server is not configured for transactions. */
#define NERR_InvalidAPI		(NERR_BASE+42)	/* The requested API isn't supported on the remote server. */
#define NERR_BadEventName	(NERR_BASE+43)	/* The event name is invalid. */
/* UNUSED BASE+44 */

/*
 *	Config API related
 *		Error codes from BASE+45 to BASE+49
 */

/* UNUSED BASE+45 */
#define NERR_CfgCompNotFound	(NERR_BASE+46)	/* Could not find the specified component in LANMAN.INI. */
#define NERR_CfgParamNotFound	(NERR_BASE+47)	/* Could not find the specified parameter in LANMAN.INI. */
#define NERR_LineTooLong	(NERR_BASE+49)	/* A line in LANMAN.INI is too long. */

/*
 *	Spooler API related
 *		Error codes from BASE+50 to BASE+79
 */

#define NERR_QNotFound		(NERR_BASE+50)	/* The printer queue does not exist. */
#define NERR_JobNotFound	(NERR_BASE+51)	/* The print job does not exist. */
#define NERR_DestNotFound	(NERR_BASE+52)	/* The printer destination cannot be found. */
#define NERR_DestExists 	(NERR_BASE+53)	/* The printer destination already exists. */
#define NERR_QExists		(NERR_BASE+54)	/* The printer queue already exists. */
#define NERR_QNoRoom		(NERR_BASE+55)	/* No more printer queues can be added. */
#define NERR_JobNoRoom		(NERR_BASE+56)	/* No more print jobs can be added.  */
#define NERR_DestNoRoom 	(NERR_BASE+57)	/* No more printer destinations can be added. */
#define NERR_DestIdle		(NERR_BASE+58)	/* This printer destination is idle and cannot accept control operations. */
#define NERR_DestInvalidOp	(NERR_BASE+59)	/* This printer destination request contains an invalid control function. */
#define NERR_ProcNoRespond	(NERR_BASE+60)	/* The printer processor is not responding. */
#define NERR_SpoolerNotLoaded	(NERR_BASE+61)	/* The spooler is not running. */
#define NERR_DestInvalidState	(NERR_BASE+62)	/* This operation cannot be performed on the print destination in its current state. */
#define NERR_QInvalidState	(NERR_BASE+63)	/* This operation cannot be performed on the printer queue in its current state. */
#define NERR_JobInvalidState	(NERR_BASE+64)	/* This operation cannot be performed on the print job in its current state. */
#define	NERR_SpoolNoMemory	(NERR_BASE+65)	/* A spooler memory allocation failure occurred. */
#define NERR_DriverNotFound	(NERR_BASE+66)	/* The device driver does not exist. */
#define NERR_DataTypeInvalid	(NERR_BASE+67)	/* The datatype is not supported by the processor. */
#define NERR_ProcNotFound	(NERR_BASE+68)	/* The print processor is not installed. */

/*
 *	Service API related
 *		Error codes from BASE+80 to BASE+99
 */

#define NERR_ServiceTableLocked	(NERR_BASE+80)	/* The service does not respond to control actions. */
#define NERR_ServiceTableFull	(NERR_BASE+81)	/* The service table is full. */
#define NERR_ServiceInstalled	(NERR_BASE+82)	/* The requested service has already been started. */
#define NERR_ServiceEntryLocked	(NERR_BASE+83)	/* The service does not respond to control actions. */
#define NERR_ServiceNotInstalled (NERR_BASE+84) /* The service has not been started. */
#define NERR_BadServiceName	(NERR_BASE+85)	/* The service name is invalid. */
#define NERR_ServiceCtlTimeout	(NERR_BASE+86)	/* The service is not responding to the control function. */
#define NERR_ServiceCtlBusy	(NERR_BASE+87)	/* The service control is busy. */
#define NERR_BadServiceProgName	(NERR_BASE+88)	/* LANMAN.INI contains an invalid service program name. */
#define NERR_ServiceNotCtrl	(NERR_BASE+89)	/* The service cannot be controlled in its present state. */
#define NERR_ServiceKillProc	(NERR_BASE+90)	/* The service ended abnormally. */
#define NERR_ServiceCtlNotValid	(NERR_BASE+91)	/* The requested pause or stop is not valid for this service. */

/*
 *	Wksta and Logon API related
 *		Error codes from BASE+100 to BASE+118
 */

#define NERR_AlreadyLoggedOn	(NERR_BASE+100)	/* This workstation is already logged on to the local-area network. */
#define NERR_NotLoggedOn	(NERR_BASE+101)	/* The workstation isn't logged on to the local-area network. */
#define NERR_BadUsername	(NERR_BASE+102)	/* The username or groupname parameter is invalid.  */
#define NERR_BadPassword	(NERR_BASE+103)	/* The password parameter is invalid. */
#define NERR_UnableToAddName_W	(NERR_BASE+104)	/* @W The logon processor did not add the message alias. */
#define NERR_UnableToAddName_F	(NERR_BASE+105)	/* The logon processor did not add the message alias. */
#define NERR_UnableToDelName_W	(NERR_BASE+106)	/* @W The logoff processor did not delete the message alias. */
#define NERR_UnableToDelName_F	(NERR_BASE+107)	/* The logoff processor did not delete the message alias. */
/* UNUSED BASE+108 */
#define NERR_LogonsPaused 	(NERR_BASE+109) /* Network logons are paused. */
#define NERR_LogonServerConflict (NERR_BASE+110)/* A centralized logon-server conflict occurred. */
#define NERR_LogonNoUserPath	(NERR_BASE+111) /* The server is configured without a valid user path. */
#define NERR_LogonScriptError	(NERR_BASE+112) /* An error occurred while loading or running the logon script. */
/* UNUSED BASE+113 */
#define NERR_StandaloneLogon    (NERR_BASE+114) /* The logon server was not specified.  Your computer will be logged on as STANDALONE. */
#define NERR_LogonServerNotFound (NERR_BASE+115) /* The logon server cannot be found.  */
#define NERR_LogonDomainExists	(NERR_BASE+116) /* There is already a logon domain for this computer.  */
#define NERR_NonValidatedLogon	(NERR_BASE+117) /* The logon server could not validate the logon. */

/*
 *	ACF API related (access, user, group)
 *		Error codes from BASE+119 to BASE+149
 */

#define NERR_ACFNotFound	(NERR_BASE+119)	/* The accounts file NET.ACC cannot be found. */
#define NERR_GroupNotFound	(NERR_BASE+120)	/* The groupname cannot be found. */
#define NERR_UserNotFound	(NERR_BASE+121)	/* The username cannot be found. */
#define NERR_ResourceNotFound	(NERR_BASE+122)	/* The resource name cannot be found.  */
#define NERR_GroupExists	(NERR_BASE+123)	/* The group already exists. */
#define NERR_UserExists		(NERR_BASE+124)	/* The user account already exists. */
#define NERR_ResourceExists	(NERR_BASE+125)	/* The resource permission list already exists. */
#define NERR_NotPrimary		(NERR_BASE+126)	/* The UAS database is replicant and will not allow updates. */
#define NERR_ACFNotLoaded	(NERR_BASE+127) /* The user account system has not been started. */
#define NERR_ACFNoRoom		(NERR_BASE+128)	/* There are too many names in the user account system. */
#define NERR_ACFFileIOFail	(NERR_BASE+129)	/* A disk I/O failure occurred.*/
#define NERR_ACFTooManyLists	(NERR_BASE+130)	/* The limit of 64 entries per resource was exceeded. */
#define NERR_UserLogon		(NERR_BASE+131) /* Deleting a user with a session is not allowed. */
#define NERR_ACFNoParent	(NERR_BASE+132)	/* The parent directory cannot be located. */
#define NERR_CanNotGrowSegment  (NERR_BASE+133) /* Unable to grow UAS session cache segment. */
#define NERR_SpeGroupOp		(NERR_BASE+134) /* This operation is not allowed on this special group. */
#define NERR_NotInCache  	(NERR_BASE+135) /* This user is not cached in UAS session cache. */
#define NERR_UserInGroup	(NERR_BASE+136) /* The user already belongs to this group. */
#define NERR_UserNotInGroup	(NERR_BASE+137) /* The user does not belong to this group. */
#define NERR_AccountUndefined	(NERR_BASE+138) /* This user account is undefined. */
#define NERR_AccountExpired	(NERR_BASE+139) /* This user account has expired. */
#define NERR_InvalidWorkstation (NERR_BASE+140) /* The user is not allowed to log on from this workstation. */
#define NERR_InvalidLogonHours	(NERR_BASE+141) /* The user is not allowed to log on at this time.  */
#define NERR_PasswordExpired	(NERR_BASE+142) /* The password of this user has expired. */
#define NERR_PasswordCantChange (NERR_BASE+143) /* The password of this user cannot change. */
#define NERR_PasswordHistConflict (NERR_BASE+144) /* This password cannot be used now. */
#define NERR_PasswordTooShort	(NERR_BASE+145) /* The password is shorter than required. */
#define NERR_PasswordTooRecent	(NERR_BASE+146) /* The password of this user is too recent to change.  */
#define NERR_InvalidDatabase	(NERR_BASE+147) /* The UAS database file is corrupted. */
#define NERR_DatabaseUpToDate	(NERR_BASE+148) /* No updates are necessary to this replicant UAS database. */
#define NERR_SyncRequired	(NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */

/*
 *	Use API related 
 *		Error codes from BASE+150 to BASE+169
 */

#define NERR_UseNotFound	(NERR_BASE+150)	/* The connection cannot be found. */
#define NERR_BadAsgType		(NERR_BASE+151)	/* This asg_type is invalid. */
#define NERR_DeviceIsShared	(NERR_BASE+152) /* This device is currently being shared. */

/* 
 *	Message Server related 
 *		Error codes BASE+170 to BASE+209
 */

#define	NERR_NoComputerName	(NERR_BASE+170)	/* A computername has not been configured.  */
#define	NERR_MsgAlreadyStarted	(NERR_BASE+171)	/* The Messenger service is already started. */
#define NERR_MsgInitFailed	(NERR_BASE+172)	/* The Messenger service failed to start.  */
#define	NERR_NameNotFound	(NERR_BASE+173)	/* The message alias cannot be found on the local-area network. */
#define	NERR_AlreadyForwarded	(NERR_BASE+174)	/* This message alias has already been forwarded. */
#define NERR_AddForwarded	(NERR_BASE+175)	/* This message alias has been added but is still forwarded. */
#define NERR_AlreadyExists	(NERR_BASE+176)	/* This message alias already exists locally. */
#define	NERR_TooManyNames	(NERR_BASE+177)	/* The maximum number of added message aliases has been exceeded. */
#define NERR_DelComputerName	(NERR_BASE+178)	/* The computername cannot be deleted.*/
#define	NERR_LocalForward	(NERR_BASE+179)	/* Messages cannot be forwarded back to the same workstation. */
#define NERR_GrpMsgProcessor	(NERR_BASE+180) /* Error in domain message processor */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -