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

📄 stnetapi.pas

📁 条码控件: 一维条码控件 二维条码控件 PDF417Barcode MaxiCodeBarcode
💻 PAS
📖 第 1 页 / 共 5 页
字号:
(* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is TurboPower SysTools
 *
 * The Initial Developer of the Original Code is
 * TurboPower Software
 *
 * Portions created by the Initial Developer are Copyright (C) 1996-2002
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** *)

{*********************************************************}
{* SysTools: StNetAPI.pas 4.03                           *}
{*********************************************************}
{* SysTools: Network API Defines                         *}
{*********************************************************}

{$I StDefine.inc}

{$H+} {Huge strings}

unit StNetAPI;

interface

uses
  Windows, StBase;

{-------------------- LMERR.H------------------------------------------------}
const
  NERR_SUCCESS      = 0; {Success}

  { NERR_BASE is the base of error codes from network utilities, }
  { chosen to avoid conflict with system and redirector error codes. }
  { 2100 is a value that has been assigned to us by system. }

  NERR_BASE      = 2100;

  { INTERNAL_ONLY }

  { ***********WARNING **************** }
  { *See the comment in lmcons.h for  * }
  { *info on the allocation of errors * }
  { *********************************** }

  { ***********WARNING **************** }
  { *The range 2750-2799 has been     * }
  { *allocated to the IBM LAN Server  * }
  { *********************************** }

  { ***********WARNING **************** }
  { *The range 2900-2999 has been     * }
  { *reserved for Microsoft OEMs      * }
  { *********************************** }

  { END_INTERNAL }

  { UNUSED BASE+0 }
  { UNUSED BASE+1 }

  NERR_NetNotStarted      = (NERR_BASE+2);  { The workstation driver is not installed. }
  NERR_UnknownServer      = (NERR_BASE+3);  { The server could not be located. }
  NERR_ShareMem           = (NERR_BASE+4);  { An internal error occurred.  The network cannot access a shared memory segment. }

  NERR_NoNetworkResource  = (NERR_BASE+5);  { A network resource shortage occurred. }
  NERR_RemoteOnly         = (NERR_BASE+6);  { This operation is not supported on workstations. }
  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 }

  NERR_ServerNotStarted   = (NERR_BASE+14); { The Server service is not started. }
  NERR_ItemNotFound       = (NERR_BASE+15); { The queue is empty. }
  NERR_UnknownDevDir      = (NERR_BASE+16); { The device or directory does not exist. }
  NERR_RedirectedPath     = (NERR_BASE+17); { The operation is invalid on a redirected resource. }
  NERR_DuplicateShare     = (NERR_BASE+18); { The name has already been shared. }
  NERR_NoRoom             = (NERR_BASE+19); { The server is currently out of the requested resource. }

  { UNUSED BASE+20 }

  NERR_TooManyItems       = (NERR_BASE+21); { Requested addition of items exceeds the maximum allowed. */ }
  NERR_InvalidMaxUsers    = (NERR_BASE+22); { The Peer service supports only two simultaneous users. */ }
  NERR_BufTooSmall        = (NERR_BASE+23); { The API return buffer is too small. }

  { UNUSED BASE+24 }
  { UNUSED BASE+25 }
  { UNUSED BASE+26 }

  NERR_RemoteErr          = (NERR_BASE+27); { A remote API error occurred. }

  { UNUSED BASE+28 }
  { UNUSED BASE+29 }
  { UNUSED BASE+30 }

  NERR_LanmanIniError     = (NERR_BASE+31); { An error occurred when opening or reading the configuration file. }

  { UNUSED BASE+32 }
  { UNUSED BASE+33 }
  { UNUSED BASE+34 }
  { UNUSED BASE+35 }

  NERR_NetworkError       = (NERR_BASE+36); { A general network error occurred. }
  NERR_WkstaInconsistentState = (NERR_BASE+37); { The Workstation service is in an inconsistent state. Restart the computer before restarting the Workstation service. }
  NERR_WkstaNotStarted    = (NERR_BASE+38); { The Workstation service has not been started. }
  NERR_BrowserNotStarted  = (NERR_BASE+39); { The requested information is not available. }
  NERR_InternalError      = (NERR_BASE+40); { An internal Windows NT error occurred. }
  NERR_BadTransactConfig  = (NERR_BASE+41); { The server is not configured for transactions. }
  NERR_InvalidAPI         = (NERR_BASE+42); { The requested API is not supported on the remote server. }
  NERR_BadEventName       = (NERR_BASE+43); { The event name is invalid. }
  NERR_DupNameReboot      = (NERR_BASE+44); { The computer name already exists on the network. Change it and restart the computer. }

  { Config API related (Error codes from BASE+45 to BASE+49) }

  { UNUSED BASE+45 }

  NERR_CfgCompNotFound    = (NERR_BASE+46); { The specified component could not be found in the configuration information. }
  NERR_CfgParamNotFound   = (NERR_BASE+47); { The specified parameter could not be found in the configuration information. }
  NERR_LineTooLong        = (NERR_BASE+49); { A line in the configuration file is too long. }

  { Spooler API related (Error codes from BASE+50 to BASE+79) }

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

  { Service API related (Error codes from BASE+80 to BASE+99) }

  NERR_ServiceTableLocked = (NERR_BASE+80); { The service database is locked. }
  NERR_ServiceTableFull   = (NERR_BASE+81); { The service table is full. }
  NERR_ServiceInstalled   = (NERR_BASE+82); { The requested service has already been started. }
  NERR_ServiceEntryLocked = (NERR_BASE+83); { The service does not respond to control actions. }
  NERR_ServiceNotInstalled= (NERR_BASE+84); { The service has not been started. }
  NERR_BadServiceName     = (NERR_BASE+85); { The service name is invalid. }
  NERR_ServiceCtlTimeout  = (NERR_BASE+86); { The service is not responding to the control function. }
  NERR_ServiceCtlBusy     = (NERR_BASE+87); { The service control is busy. }
  NERR_BadServiceProgName = (NERR_BASE+88); { The configuration file contains an invalid service program name. }
  NERR_ServiceNotCtrl     = (NERR_BASE+89); { The service could not be controlled in its present state. }
  NERR_ServiceKillProc    = (NERR_BASE+90); { The service ended abnormally. }
  NERR_ServiceCtlNotValid = (NERR_BASE+91); { The requested pause or stop is not valid for this service. }
  NERR_NotInDispatchTbl   = (NERR_BASE+92); { The service control dispatcher could not find the service name in the dispatch table. }
  NERR_BadControlRecv     = (NERR_BASE+93); { The service control dispatcher pipe read failed. }
  NERR_ServiceNotStarting = (NERR_BASE+94); { A thread for the new service could not be created. }

  { Wksta and Logon API related (Error codes from BASE+100 to BASE+118) }

  NERR_AlreadyLoggedOn    = (NERR_BASE+100); { This workstation is already logged on to the local-area network. }
  NERR_NotLoggedOn        = (NERR_BASE+101); { The workstation is not logged on to the local-area network. }
  NERR_BadUsername        = (NERR_BASE+102); { The user name or group name parameter is invalid. }
  NERR_BadPassword        = (NERR_BASE+103); { The password parameter is invalid. }
  NERR_UnableToAddName_W  = (NERR_BASE+104); { @W The logon processor did not add the message alias. }
  NERR_UnableToAddName_F  = (NERR_BASE+105); { The logon processor did not add the message alias. }
  NERR_UnableToDelName_W  = (NERR_BASE+106); { @W The logoff processor did not delete the message alias. }
  NERR_UnableToDelName_F  = (NERR_BASE+107); { The logoff processor did not delete the message alias. }

  { UNUSED BASE+108 }

  NERR_LogonsPaused       = (NERR_BASE+109); { Network logons are paused. }
  NERR_LogonServerConflict= (NERR_BASE+110); { A centralized logon-server conflict occurred. }
  NERR_LogonNoUserPath    = (NERR_BASE+111); { The server is configured without a valid user path. }
  NERR_LogonScriptError   = (NERR_BASE+112); { An error occurred while loading or running the logon script. }

  { UNUSED BASE+113 }

  NERR_StandaloneLogon    = (NERR_BASE+114); { The logon server was not specified.  Your computer will be logged on as STANDALONE. }
  NERR_LogonServerNotFound= (NERR_BASE+115); { The logon server could not be found. }
  NERR_LogonDomainExists  = (NERR_BASE+116); { There is already a logon domain for this computer. }
  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) }

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

  { Use API related (Error codes from BASE+150 to BASE+169) }

  NERR_UseNotFound        = (NERR_BASE+150); { The network connection could not be found. }
  NERR_BadAsgType         = (NERR_BASE+151); { This asg_type is invalid. }
  NERR_DeviceIsShared     = (NERR_BASE+152); { This device is currently being shared. }

  { Message Server related (Error codes BASE+170 to BASE+209) }

  NERR_NoComputerName     = (NERR_BASE+170); { The computer name could not be added as a message alias.  The name may already exist on the network. }
  NERR_MsgAlreadyStarted  = (NERR_BASE+171); { The Messenger service is already started. }
  NERR_MsgInitFailed      = (NERR_BASE+172); { The Messenger service failed to start. }
  NERR_NameNotFound       = (NERR_BASE+173); { The message alias could not be found on the network. }
  NERR_AlreadyForwarded   = (NERR_BASE+174); { This message alias has already been forwarded. }
  NERR_AddForwarded       = (NERR_BASE+175); { This message alias has been added but is still forwarded. }
  NERR_AlreadyExists      = (NERR_BASE+176); { This message alias already exists locally. }
  NERR_TooManyNames       = (NERR_BASE+177); { The maximum number of added message aliases has been exceeded. }
  NERR_DelComputerName    = (NERR_BASE+178); { The computer name could not be deleted. }

⌨️ 快捷键说明

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