Wpis z mikrobloga

#programujzwykopem

class SystemErrorCodes

{

public const Int32 ERRORACCESSDENIED = 5;

public const Int32 ERRORADAPHDWERR = 57;

public const Int32 ERROR
ALREADYASSIGNED = 85;

public const Int32 ERROR
ALREADYEXISTS = 183;

public const Int32 ERROR
ARENATRASHED = 7;

public const Int32 ERROR
ATOMICLOCKSNOTSUPPORTED = 174;

public const Int32 ERROR
AUTODATASEGEXCEEDS64k = 199;

public const Int32 ERRORBADARGUMENTS = 160;

public const Int32 ERRORBADCOMMAND = 22;

public const Int32 ERRORBADDEVTYPE = 66;

public const Int32 ERROR
BADDRIVERLEVEL = 119;

public const Int32 ERRORBADENVIRONMENT = 10;

public const Int32 ERRORBADEXEFORMAT = 193;

public const Int32 ERROR
BADFILETYPE = 222;

public const Int32 ERRORBADFORMAT = 11;

public const Int32 ERRORBADLENGTH = 24;

public const Int32 ERRORBADNETNAME = 67;

public const Int32 ERROR
BADNETRESP = 58;

public const Int32 ERRORBADNETPATH = 53;

public const Int32 ERRORBADPATHNAME = 161;

public const Int32 ERRORBADPIPE = 230;

public const Int32 ERRORBADREMADAP = 60;

public const Int32 ERROR
BADTHREADIDADDR = 159;

public const Int32 ERRORBADUNIT = 20;

public const Int32 ERRORBROKENPIPE = 109;

public const Int32 ERRORBUFFEROVERFLOW = 111;

public const Int32 ERRORBUSYDRIVE = 142;

public const Int32 ERRORBUSY = 170;

public const Int32 ERROR
CALLNOTIMPLEMENTED = 120;

public const Int32 ERRORCANCELVIOLATION = 173;

public const Int32 ERRORCANNOTCOPY = 266;

public const Int32 ERRORCANNOTMAKE = 82;

public const Int32 ERRORCHECKOUTREQUIRED = 221;

public const Int32 ERRORCHILDNOTCOMPLETE = 129;

public const Int32 ERROR
CRC = 23;

public const Int32 ERRORCURRENTDIRECTORY = 16;

public const Int32 ERRORDELETEPENDING = 303;

public const Int32 ERRORDEVNOTEXIST = 55;

public const Int32 ERROR
DIRNOTEMPTY = 145;

public const Int32 ERRORDIRNOTROOT = 144;

public const Int32 ERROR
DIRECTACCESSHANDLE = 130;

public const Int32 ERRORDIRECTORY = 267;

public const Int32 ERROR
DISCARDED = 157;

public const Int32 ERRORDISKCHANGE = 107;

public const Int32 ERRORDISKFULL = 112;

public const Int32 ERRORDISKTOOFRAGMENTED = 302;

public const Int32 ERROR
DRIVELOCKED = 108;

public const Int32 ERROR
DUPNAME = 52;

public const Int32 ERROR
DYNLINKFROMINVALIDRING = 196;

public const Int32 ERROR
EAFILECORRUPT = 276;

public const Int32 ERROREALISTINCONSISTENT = 255;

public const Int32 ERROR
EATABLEFULL = 277;

public const Int32 ERROREASDIDNTFIT = 275;

public const Int32 ERROR
EASNOTSUPPORTED = 282;

public const Int32 ERRORENVVARNOTFOUND = 203;

public const Int32 ERROR
EXCLSEMALREADYOWNED = 101;

public const Int32 ERROR
EXECANNOTMODIFYSIGNEDBINARY = 217;

public const Int32 ERROREXECANNOTMODIFYSTRONGSIGNEDBINARY = 218;

public const Int32 ERROREXEMACHINETYPEMISMATCH = 216;

public const Int32 ERROREXEMARKEDINVALID = 192;

public const Int32 ERROR
FAILI24 = 83;

public const Int32 ERROR
FAILNOACTIONREBOOT = 350;

public const Int32 ERRORFAILRESTART = 352;

public const Int32 ERRORFAILSHUTDOWN = 351;

public const Int32 ERRORFILECHECKEDOUT = 220;

public const Int32 ERROR
FILEEXISTS = 80;

public const Int32 ERROR
FILENOTFOUND = 2;

public const Int32 ERRORFILETOOLARGE = 223;

public const Int32 ERROR
FILENAMEEXCEDRANGE = 206;

public const Int32 ERRORFORMSAUTHREQUIRED = 224;

public const Int32 ERROR
GENFAILURE = 31;

public const Int32 ERROR
HANDLEDISKFULL = 39;

public const Int32 ERRORHANDLEEOF = 38;

public const Int32 ERRORIMAGESUBSYSTEMNOTPRESENT = 308;

public const Int32 ERRORINCOMPATIBLEWITHGLOBALSHORTNAMEREGISTRYSETTING = 304;

public const Int32 ERROR
INFLOOPINRELOCCHAIN = 202;

public const Int32 ERROR
INSUFFICIENTBUFFER = 122;

public const Int32 ERROR
INVALIDACCESS = 12;

public const Int32 ERROR
INVALIDADDRESS = 487;

public const Int32 ERROR
INVALIDATINTERRUPTTIME = 104;

public const Int32 ERROR
INVALIDBLOCK = 9;

public const Int32 ERROR
INVALIDCATEGORY = 117;

public const Int32 ERROR
INVALIDDATA = 13;

public const Int32 ERROR
INVALIDDRIVE = 15;

public const Int32 ERROR
INVALIDEAHANDLE = 278;

public const Int32 ERRORINVALIDEANAME = 254;

public const Int32 ERROR
INVALIDEVENTCOUNT = 151;

public const Int32 ERRORINVALIDEXESIGNATURE = 191;

public const Int32 ERROR
INVALIDFLAGNUMBER = 186;

public const Int32 ERRORINVALIDFUNCTION = 1;

public const Int32 ERRORINVALIDHANDLE = 6;

public const Int32 ERRORINVALIDLEVEL = 124;

public const Int32 ERRORINVALIDLISTFORMAT = 153;

public const Int32 ERROR
INVALIDLOCKRANGE = 307;

public const Int32 ERRORINVALIDMINALLOCSIZE = 195;

public const Int32 ERRORINVALIDMODULETYPE = 190;

public const Int32 ERRORINVALIDNAME = 123;

public const Int32 ERRORINVALIDOPLOCKPROTOCOL = 301;

public const Int32 ERROR
INVALIDORDINAL = 182;

public const Int32 ERROR
INVALIDPARAMETER = 87;

public const Int32 ERROR
INVALIDPASSWORD = 86;

public const Int32 ERROR
INVALIDSEGDPL = 198;

public const Int32 ERROR
INVALIDSEGMENTNUMBER = 180;

public const Int32 ERRORINVALIDSIGNALNUMBER = 209;

public const Int32 ERROR
INVALIDSTACKSEG = 189;

public const Int32 ERROR
INVALIDSTARTINGCODESEG = 188;

public const Int32 ERRORINVALIDTARGETHANDLE = 114;

public const Int32 ERROR
INVALIDVERIFYSWITCH = 118;

public const Int32 ERRORIOPLNOTENABLED = 197;

public const Int32 ERROR
ISJOINPATH = 147;

public const Int32 ERRORISJOINTARGET = 133;

public const Int32 ERROR
ISJOINED = 134;

public const Int32 ERROR
ISSUBSTPATH = 146;

public const Int32 ERRORISSUBSTTARGET = 149;

public const Int32 ERROR
ISSUBSTED = 135;

public const Int32 ERROR
ITERATEDDATAEXCEEDS64k = 194;

public const Int32 ERROR
JOINTOJOIN = 138;

public const Int32 ERRORJOINTOSUBST = 140;

public const Int32 ERROR
LABELTOOLONG = 154;

public const Int32 ERRORLOCKFAILED = 167;

public const Int32 ERRORLOCKVIOLATION = 33;

public const Int32 ERRORLOCKED = 212;

public const Int32 ERROR
MAXSESSIONSREACHED = 353;

public const Int32 ERRORMAXTHRDSREACHED = 164;

public const Int32 ERROR
METAEXPANSIONTOOLONG = 208;

public const Int32 ERROR
MODNOTFOUND = 126;

public const Int32 ERRORMOREDATA = 234;

public const Int32 ERRORMRMIDNOTFOUND = 317;

public const Int32 ERRORNEGATIVESEEK = 131;

public const Int32 ERRORNESTINGNOTALLOWED = 215;

public const Int32 ERROR
NETWRITEFAULT = 88;

public const Int32 ERRORNETNAMEDELETED = 64;

public const Int32 ERRORNETWORKACCESSDENIED = 65;

public const Int32 ERROR
NETWORKBUSY = 54;

public const Int32 ERROR
NODATA = 232;

public const Int32 ERROR
NOMOREFILES = 18;

public const Int32 ERRORNOMOREITEMS = 259;

public const Int32 ERROR
NOMORESEARCHHANDLES = 113;

public const Int32 ERROR
NOPROCSLOTS = 89;

public const Int32 ERRORNOSIGNALSENT = 205;

public const Int32 ERROR
NOSPOOLSPACE = 62;

public const Int32 ERRORNOVOLUMELABEL = 125;

public const Int32 ERROR
NOTDOSDISK = 26;

public const Int32 ERRORNOTENOUGHMEMORY = 8;

public const Int32 ERROR
NOTJOINED = 136;

public const Int32 ERROR
NOTLOCKED = 158;

public const Int32 ERROR
NOTOWNER = 288;

public const Int32 ERROR
NOTREADY = 21;

public const Int32 ERROR
NOTSAMEDEVICE = 17;

public const Int32 ERRORNOTSUBSTED = 137;

public const Int32 ERRORNOTSUPPORTED = 50;

public const Int32 ERRORNOTIFICATIONGUIDALREADYDEFINED = 309;

public const Int32 ERROROPENFAILED = 110;

public const Int32 ERROROPLOCKNOTGRANTED = 300;

public const Int32 ERROR
OUTOFPAPER = 28;

public const Int32 ERROROUTOFSTRUCTURES = 84;

public const Int32 ERROR
OUTOFMEMORY = 14;

public const Int32 ERRORPARTIALCOPY = 299;

public const Int32 ERRORPATHBUSY = 148;

public const Int32 ERRORPATHNOTFOUND = 3;

public const Int32 ERROR
PIPEBUSY = 231;

public const Int32 ERROR
PIPELOCAL = 229;

public const Int32 ERROR
PIPENOTCONNECTED = 233;

public const Int32 ERRORPRINTCANCELLED = 63;

public const Int32 ERRORPRINTQFULL = 61;

public const Int32 ERRORPROCNOTFOUND = 127;

public const Int32 ERROR
PROCESSMODEALREADYBACKGROUND = 402;

public const Int32 ERROR
PROCESSMODENOTBACKGROUND = 403;

public const Int32 ERROR
READFAULT = 30;

public const Int32 ERROR
REDIRPAUSED = 72;

public const Int32 ERROR
RELOCCHAINXEEDSSEGLIM = 201;

public const Int32 ERROR
REMNOTLIST = 51;

public const Int32 ERRORREQNOTACCEP = 71;

public const Int32 ERROR
RING2STACKINUSE = 207;

public const Int32 ERROR
RING2SEGMUSTBEMOVABLE = 200;

public const Int32 ERROR
SAMEDRIVE = 143;

public const Int32 ERROR
SCOPENOTFOUND = 318;

public const Int32 ERRORSECTORNOTFOUND = 27;

public const Int32 ERROR
SECURITYSTREAMISINCONSISTENT = 306;

public const Int32 ERROR
SEEKONDEVICE = 132;

public const Int32 ERRORSEEK = 25;

public const Int32 ERROR
SEMISSET = 102;

public const Int32 ERRORSEMNOTFOUND = 187;

public const Int32 ERROR
SEMOWNERDIED = 105;

public const Int32 ERRORSEMTIMEOUT = 121;

public const Int32 ERRORSEMUSERLIMIT = 106;

public const Int32 ERROR
SHARINGBUFFEREXCEEDED = 36;

public const Int32 ERRORSHARINGPAUSED = 70;

public const Int32 ERRORSHARINGVIOLATION = 32;

public const Int32 ERRORSHORTNAMESNOTENABLEDONVOLUME = 305;

public const Int32 ERRORSIGNALPENDING = 162;

public const Int32 ERRORSIGNALREFUSED = 156;

public const Int32 ERRORSUBSTTOJOIN = 141;

public const Int32 ERROR
SUBSTTOSUBST = 139;

public const Int32 ERRORSUCCESS = 0;

public const Int32 ERROR
SYSTEMTRACE = 150;

public const Int32 ERROR
THREAD1INACTIVE = 210;

public const Int32 ERRORTHREADMODEALREADYBACKGROUND = 400;

public const Int32 ERRORTHREADMODENOTBACKGROUND = 401;

public const Int32 ERRORTOOMANYCMDS = 56;

public const Int32 ERROR
TOOMANYMODULES = 214;

public const Int32 ERRORTOOMANYMUXWAITERS = 152;

public const Int32 ERROR
TOOMANYNAMES = 68;

public const Int32 ERRORTOOMANYOPENFILES = 4;

public const Int32 ERRORTOOMANYPOSTS = 298;

public const Int32 ERROR
TOOMANYSEMREQUESTS = 103;

public const Int32 ERROR
TOOMANYSEMAPHORES = 100;

public const Int32 ERRORTOOMANYSESS = 69;

public const Int32 ERROR
TOOMANYTCBS = 155;

public const Int32 ERRORUNEXPNETERR = 59;

public const Int32 ERROR
VCDISCONNECTED = 240;

public const Int32 ERROR
VIRUSDELETED = 226;

public const Int32 ERROR
VIRUSINFECTED = 225;

public const Int32 ERROR
WAITNOCHILDREN = 128;

public const Int32 ERRORWRITEFAULT = 29;

public const Int32 ERRORWRITEPROTECT = 19;

public const Int32 ERRORWRONGDISK = 34;

public const Int32 WAIT_TIMEOUT = 258;

```
public string ToString(Int32 ERR)

{

switch (ERR)

{

case 0: return "The operation completed successfully.";

case 1: return "Incorrect function.";

case 10: return "The environment is incorrect.";

case 100: return "Cannot create another system semaphore.";

case 101: return "The exclusive semaphore is owned by another process.";

case 102: return "The semaphore is set and cannot be closed.";

case 103: return "The semaphore cannot be set again.";

case 104: return "Cannot request exclusive semaphores at interrupt time.";

case 105: return "The previous ownership of this semaphore has ended.";

case 106: return "Insert the diskette for drive %1.";

case 107: return "The program stopped because an alternate diskette was not inserted.";

case 108: return "The disk is in use or locked by another process.";

case 109: return "The pipe has been ended.";

case 11: return "An attempt was made to load a program with an incorrect format.";

case 110: return "The system cannot open the device or file specified.";

case 111: return "The file name is too long.";

case 112: return "There is not enough space on the disk.";

case 113: return "No more internal file identifiers available.";

case 114: return "The target internal file identifier is incorrect.";

case 117: return "The IOCTL call made by the application program is not correct.";

case 118: return "The verify-on-write switch parameter value is not correct.";

case 119: return "The system does not support the command requested.";

case 12: return "The access code is invalid.";

case 120: return "This function is not supported on this system.";

case 121: return "The semaphore timeout period has expired.";

case 122: return "The data area passed to a system call is too small.";

case 123: return "The filename, directory name, or volume label syntax is incorrect.";

case 124: return "The system call level is not correct.";

case 125: return "The disk has no volume label.";

case 126: return "The specified module could not be found.";

case 127: return "The specified procedure could not be found.";

case 128: return "There are no child processes to wait for.";

case 129: return "The %1 application cannot be run in Win32 mode.";

case 13: return "The data is invalid.";

case 130: return "Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.";

case 131: return "An attempt was made to move the file pointer before the beginning of the file.";

case 132: return "The file pointer cannot be set on the specified device or file.";

case 133: return "A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.";

case 134: return "An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.";

case 135: return "An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.";

case 136: return "The system tried to delete the JOIN of a drive that is not joined.";

case 137: return "The system tried to delete the substitution of a drive that is not substituted.";

case 138: return "The system tried to join a drive to a directory on a joined drive.";

case 139: return "The system tried to substitute a drive to a directory on a substituted drive.";

case 14: return "Not enough storage is available to complete this operation.";

case 140: return "The system tried to join a drive to a directory on a substituted drive.";

case 141: return "The system tried to SUBST a drive to a directory on a joined drive.";

case 142: return "The system cannot perform a JOIN or SUBST at this time.";

case 143: return "The system cannot join or substitute a drive to or for a directory on the same drive.";

case 144: return "The directory is not a subdirectory of the root directory.";

case 145: return "The directory is not empty.";

case 146: return "The path specified is being used in a substitute.";

case 147: return "Not enough resources are available to process this command.";

case 148: return "The path specified cannot be used at this time.";

case 149: return "An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.";

case 15: return "The system cannot find the drive specified.";

case 150: return "System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.";

case 151: return "The number of specified semaphore events for DosMuxSemWait is not correct.";

case 152: return "DosMuxSemWait did not execute; too many semaphores are already set.";

case 153: return "The DosMuxSemWait list is not correct.";

case 154: return "The volume label you entered exceeds the label character limit of the target file system.";

case 155: return "Cannot create another thread.";

case 156: return "The recipient process has refused the signal.";

case 157: return "The segment is already discarded and cannot be locked.";

case 158: return "The segment is already unlocked.";

case 159: return "The address for the thread ID is not correct.";

case 16: return "The directory cannot be removed.";

case 160: return "One or more arguments are not correct.";

case 161: return "The specified path is invalid.";

case 162: return "A signal is already pending.";

case 164: return "No more threads can be created in the system.";

case 167: return "Unable to lock a region of a file.";

case 17: return "The system cannot move the file to a different disk drive.";

case 170: return "The requested resource is in use.";

case 173: return "A lock request was not outstanding for the supplied cancel region.";

case 174: return "The file system does not support atomic changes to the lock type.";

case 18: return "There are no more files.";

case 180: return "The system detected a segment number that was not correct.";

case 182: return "The operating system cannot run %1.";

case 183: return "Cannot create a file when that file already exists.";

case 186: return "The flag passed is not correct.";

case 187: return "The specified system semaphore name was not found.";

case 188: return "The operating system cannot run %1.";

case 189: return "The operating system cannot run %1.";

case 19: return "The media is write protected.";

case 190: return "The operating system cannot run %1.";

case 191: return "Cannot run %1 in Win32 mode.";

case 192: return "The operating system cannot run %1.";

case 193: return "is not a valid Win32 application.";

case 194: return "The operating system cannot run %1.";

case 195: return "The operating system cannot run %1.";

case 196: return "The operating system cannot run this application program.";

case 197: return "The operating system is not presently configured to run this application.";

case 198: return "The operating system cannot run %1.";

case 199: return "The operating system cannot run this application program.";

case 2: return "The system cannot find the file specified.";

case 20: return "The system cannot find the device specified.";

case 200: return "The code segment cannot be greater than or equal to 64K.";

case 201: return "The operating system cannot run %1.";

case 202: return "The operating system cannot run %1.";

case 203: return "The system could not find the environment option that was entered.";

case 205: return "No process in the command subtree has a signal handler.";

case 206: return "The filename or extension is too long.";

case 207: return "The ring 2 stack is in use.";

case 208: return "The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.";

case 209: return "The signal being posted is not correct.";

case 21: return "The device is not ready.";

case 210: return "The signal handler cannot be set.";

case 212: return "The segment is locked and cannot be reallocated.";

case 214: return "Too many dynamic-link modules are attached to this pr
  • 5
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach