lib.common.errors

Package lib :: Package common :: Module errors |
[hide private]
[frames] | no frames]

# Source Code for Module lib.common.errors

      1  # Copyright (C) 2010-2013 Claudio Guarnieri.
      2  # Copyright (C) 2014-2016 Cuckoo Foundation.
      3  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
      4  # See the file 'docs/LICENSE' for copying permission.
      5
      6  ERRORS = {
      7   0: {"description": "The operation completed successfully",
      8       "name": "ERROR_SUCCESS"},
      9   1: {"description": "Incorrect function", "name": "ERROR_INVALID_FUNCTION"},
     10   2: {"description": "The system cannot find the file specified",
     11       "name": "ERROR_FILE_NOT_FOUND"},
     12   3: {"description": "The system cannot find the path specified",
     13       "name": "ERROR_PATH_NOT_FOUND"},
     14   4: {"description": "The system cannot open the file",
     15       "name": "ERROR_TOO_MANY_OPEN_FILES"},
     16   5: {"description": "Access is denied", "name": "ERROR_ACCESS_DENIED"},
     17   6: {"description": "The handle is invalid", "name": "ERROR_INVALID_HANDLE"},
     18   7: {"description": "The storage control blocks were destroyed",
     19       "name": "ERROR_ARENA_TRASHED"},
     20   8: {"description": "Not enough storage is available to process this command",
     21       "name": "ERROR_NOT_ENOUGH_MEMORY"},
     22   9: {"description": "The storage control block address is invalid",
     23       "name": "ERROR_INVALID_BLOCK"},
     24   10: {"description": "The environment is incorrect",
     25        "name": "ERROR_BAD_ENVIRONMENT"},
     26   11: {"description": "An attempt was made to load a program with an incorrect format",
     27        "name": "ERROR_BAD_FORMAT"},
     28   12: {"description": "The access code is invalid",
     29        "name": "ERROR_INVALID_ACCESS"},
     30   13: {"description": "The data is invalid", "name": "ERROR_INVALID_DATA"},
     31   14: {"description": "Not enough storage is available to complete this operation",
     32        "name": "ERROR_OUTOFMEMORY"},
     33   15: {"description": "The system cannot find the drive specified",
     34        "name": "ERROR_INVALID_DRIVE"},
     35   16: {"description": "The directory cannot be removed",
     36        "name": "ERROR_CURRENT_DIRECTORY"},
     37   17: {"description": "The system cannot move the file to a different disk drive",
     38        "name": "ERROR_NOT_SAME_DEVICE"},
     39   18: {"description": "There are no more files", "name": "ERROR_NO_MORE_FILES"},
     40   19: {"description": "The media is write protected",
     41        "name": "ERROR_WRITE_PROTECT"},
     42   20: {"description": "The system cannot find the device specified",
     43        "name": "ERROR_BAD_UNIT"},
     44   21: {"description": "The device is not ready", "name": "ERROR_NOT_READY"},
     45   22: {"description": "The device does not recognize the command",
     46        "name": "ERROR_BAD_COMMAND"},
     47   23: {"description": "Data error (cyclic redundancy check)",
     48        "name": "ERROR_CRC"},
     49   24: {"description": "The program issued a command but the command length is incorrect",
     50        "name": "ERROR_BAD_LENGTH"},
     51   25: {"description": "The drive cannot locate a specific area or track on the disk",
     52        "name": "ERROR_SEEK"},
     53   26: {"description": "The specified disk or diskette cannot be accessed",
     54        "name": "ERROR_NOT_DOS_DISK"},
     55   27: {"description": "The drive cannot find the sector requested",
     56        "name": "ERROR_SECTOR_NOT_FOUND"},
     57   28: {"description": "The printer is out of paper",
     58        "name": "ERROR_OUT_OF_PAPER"},
     59   29: {"description": "The system cannot write to the specified device",
     60        "name": "ERROR_WRITE_FAULT"},
     61   30: {"description": "The system cannot read from the specified device",
     62        "name": "ERROR_READ_FAULT"},
     63   31: {"description": "A device attached to the system is not functioning",
     64        "name": "ERROR_GEN_FAILURE"},
     65   32: {"description": "The process cannot access the file because it is being used by another process",
     66        "name": "ERROR_SHARING_VIOLATION"},
     67   33: {"description": "The process cannot access the file because another process has locked a portion of the file",
     68        "name": "ERROR_LOCK_VIOLATION"},
     69   34: {"description": "The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1",
     70        "name": "ERROR_WRONG_DISK"},
     71   36: {"description": "Too many files opened for sharing",
     72        "name": "ERROR_SHARING_BUFFER_EXCEEDED"},
     73   38: {"description": "Reached the end of the file",
     74        "name": "ERROR_HANDLE_EOF"},
     75   39: {"description": "The disk is full", "name": "ERROR_HANDLE_DISK_FULL"},
     76   50: {"description": "The request is not supported",
     77        "name": "ERROR_NOT_SUPPORTED"},
     78   51: {"description": "Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator",
     79        "name": "ERROR_REM_NOT_LIST"},
     80   52: {"description": "You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name",
     81        "name": "ERROR_DUP_NAME"},
     82   53: {"description": "The network path was not found",
     83        "name": "ERROR_BAD_NETPATH"},
     84   54: {"description": "The network is busy", "name": "ERROR_NETWORK_BUSY"},
     85   55: {"description": "The specified network resource or device is no longer available",
     86        "name": "ERROR_DEV_NOT_EXIST"},
     87   56: {"description": "The network BIOS command limit has been reached",
     88        "name": "ERROR_TOO_MANY_CMDS"},
     89   57: {"description": "A network adapter hardware error occurred",
     90        "name": "ERROR_ADAP_HDW_ERR"},
     91   58: {"description": "The specified server cannot perform the requested operation",
     92        "name": "ERROR_BAD_NET_RESP"},
     93   59: {"description": "An unexpected network error occurred",
     94        "name": "ERROR_UNEXP_NET_ERR"},
     95   60: {"description": "The remote adapter is not compatible",
     96        "name": "ERROR_BAD_REM_ADAP"},
     97   61: {"description": "The printer queue is full", "name": "ERROR_PRINTQ_FULL"},
     98   62: {"description": "Space to store the file waiting to be printed is not available on the server",
     99        "name": "ERROR_NO_SPOOL_SPACE"},
    100   63: {"description": "Your file waiting to be printed was deleted",
    101        "name": "ERROR_PRINT_CANCELLED"},
    102   64: {"description": "The specified network name is no longer available",
    103        "name": "ERROR_NETNAME_DELETED"},
    104   65: {"description": "Network access is denied",
    105        "name": "ERROR_NETWORK_ACCESS_DENIED"},
    106   66: {"description": "The network resource type is not correct",
    107        "name": "ERROR_BAD_DEV_TYPE"},
    108   67: {"description": "The network name cannot be found",
    109        "name": "ERROR_BAD_NET_NAME"},
    110   68: {"description": "The name limit for the local computer network adapter card was exceeded",
    111        "name": "ERROR_TOO_MANY_NAMES"},
    112   69: {"description": "The network BIOS session limit was exceeded",
    113        "name": "ERROR_TOO_MANY_SESS"},
    114   70: {"description": "The remote server has been paused or is in the process of being started",
    115        "name": "ERROR_SHARING_PAUSED"},
    116   71: {"description": "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept",
    117        "name": "ERROR_REQ_NOT_ACCEP"},
    118   72: {"description": "The specified printer or disk device has been paused",
    119        "name": "ERROR_REDIR_PAUSED"},
    120   80: {"description": "The file exists", "name": "ERROR_FILE_EXISTS"},
    121   82: {"description": "The directory or file cannot be created",
    122        "name": "ERROR_CANNOT_MAKE"},
    123   83: {"description": "Fail on INT 24", "name": "ERROR_FAIL_I24"},
    124   84: {"description": "Storage to process this request is not available",
    125        "name": "ERROR_OUT_OF_STRUCTURES"},
    126   85: {"description": "The local device name is already in use",
    127        "name": "ERROR_ALREADY_ASSIGNED"},
    128   86: {"description": "The specified network password is not correct",
    129        "name": "ERROR_INVALID_PASSWORD"},
    130   87: {"description": "The parameter is incorrect",
    131        "name": "ERROR_INVALID_PARAMETER"},
    132   88: {"description": "A write fault occurred on the network",
    133        "name": "ERROR_NET_WRITE_FAULT"},
    134   89: {"description": "The system cannot start another process at this time",
    135        "name": "ERROR_NO_PROC_SLOTS"},
    136   100: {"description": "Cannot create another system semaphore",
    137         "name": "ERROR_TOO_MANY_SEMAPHORES"},
    138   101: {"description": "The exclusive semaphore is owned by another process",
    139         "name": "ERROR_EXCL_SEM_ALREADY_OWNED"},
    140   102: {"description": "The semaphore is set and cannot be closed",
    141         "name": "ERROR_SEM_IS_SET"},
    142   103: {"description": "The semaphore cannot be set again",
    143         "name": "ERROR_TOO_MANY_SEM_REQUESTS"},
    144   104: {"description": "Cannot request exclusive semaphores at interrupt time",
    145         "name": "ERROR_INVALID_AT_INTERRUPT_TIME"},
    146   105: {"description": "The previous ownership of this semaphore has ended",
    147         "name": "ERROR_SEM_OWNER_DIED"},
    148   106: {"description": "Insert the diskette for drive %1",
    149         "name": "ERROR_SEM_USER_LIMIT"},
    150   107: {"description": "The program stopped because an alternate diskette was not inserted",
    151         "name": "ERROR_DISK_CHANGE"},
    152   108: {"description": "The disk is in use or locked by another process",
    153         "name": "ERROR_DRIVE_LOCKED"},
    154   109: {"description": "The pipe has been ended", "name": "ERROR_BROKEN_PIPE"},
    155   110: {"description": "The system cannot open the device or file specified",
    156         "name": "ERROR_OPEN_FAILED"},
    157   111: {"description": "The file name is too long",
    158         "name": "ERROR_BUFFER_OVERFLOW"},
    159   112: {"description": "There is not enough space on the disk",
    160         "name": "ERROR_DISK_FULL"},
    161   113: {"description": "No more internal file identifiers available",
    162         "name": "ERROR_NO_MORE_SEARCH_HANDLES"},
    163   114: {"description": "The target internal file identifier is incorrect",
    164         "name": "ERROR_INVALID_TARGET_HANDLE"},
    165   117: {"description": "The IOCTL call made by the application program is not correct",
    166         "name": "ERROR_INVALID_CATEGORY"},
    167   118: {"description": "The verify-on-write switch parameter value is not correct",
    168         "name": "ERROR_INVALID_VERIFY_SWITCH"},
    169   119: {"description": "The system does not support the command requested",
    170         "name": "ERROR_BAD_DRIVER_LEVEL"},
    171   120: {"description": "This function is not supported on this system",
    172         "name": "ERROR_CALL_NOT_IMPLEMENTED"},
    173   121: {"description": "The semaphore timeout period has expired",
    174         "name": "ERROR_SEM_TIMEOUT"},
    175   122: {"description": "The data area passed to a system call is too small",
    176         "name": "ERROR_INSUFFICIENT_BUFFER"},
    177   123: {"description": "The filename, directory name, or volume label syntax is incorrect",
    178         "name": "ERROR_INVALID_NAME"},
    179   124: {"description": "The system call level is not correct",
    180         "name": "ERROR_INVALID_LEVEL"},
    181   125: {"description": "The disk has no volume label",
    182         "name": "ERROR_NO_VOLUME_LABEL"},
    183   126: {"description": "The specified module could not be found",
    184         "name": "ERROR_MOD_NOT_FOUND"},
    185   127: {"description": "The specified procedure could not be found",
    186         "name": "ERROR_PROC_NOT_FOUND"},
    187   128: {"description": "There are no child processes to wait for",
    188         "name": "ERROR_WAIT_NO_CHILDREN"},
    189   129: {"description": "The %1 application cannot be run in Win32 mode",
    190         "name": "ERROR_CHILD_NOT_COMPLETE"},
    191   130: {"description": "Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O",
    192         "name": "ERROR_DIRECT_ACCESS_HANDLE"},
    193   131: {"description": "An attempt was made to move the file pointer before the beginning of the file",
    194         "name": "ERROR_NEGATIVE_SEEK"},
    195   132: {"description": "The file pointer cannot be set on the specified device or file",
    196         "name": "ERROR_SEEK_ON_DEVICE"},
    197   133: {"description": "A JOIN or SUBST command cannot be used for a drive that contains previously joined drives",
    198         "name": "ERROR_IS_JOIN_TARGET"},
    199   134: {"description": "An attempt was made to use a JOIN or SUBST command on a drive that has already been joined",
    200         "name": "ERROR_IS_JOINED"},
    201   135: {"description": "An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted",
    202         "name": "ERROR_IS_SUBSTED"},
    203   136: {"description": "The system tried to delete the JOIN of a drive that is not joined",
    204         "name": "ERROR_NOT_JOINED"},
    205   137: {"description": "The system tried to delete the substitution of a drive that is not substituted",
    206         "name": "ERROR_NOT_SUBSTED"},
    207   138: {"description": "The system tried to join a drive to a directory on a joined drive",
    208         "name": "ERROR_JOIN_TO_JOIN"},
    209   139: {"description": "The system tried to substitute a drive to a directory on a substituted drive",
    210         "name": "ERROR_SUBST_TO_SUBST"},
    211   140: {"description": "The system tried to join a drive to a directory on a substituted drive",
    212         "name": "ERROR_JOIN_TO_SUBST"},
    213   141: {"description": "The system tried to SUBST a drive to a directory on a joined drive",
    214         "name": "ERROR_SUBST_TO_JOIN"},
    215   142: {"description": "The system cannot perform a JOIN or SUBST at this time",
    216         "name": "ERROR_BUSY_DRIVE"},
    217   143: {"description": "The system cannot join or substitute a drive to or for a directory on the same drive",
    218         "name": "ERROR_SAME_DRIVE"},
    219   144: {"description": "The directory is not a subdirectory of the root directory",
    220         "name": "ERROR_DIR_NOT_ROOT"},
    221   145: {"description": "The directory is not empty",
    222         "name": "ERROR_DIR_NOT_EMPTY"},
    223   146: {"description": "The path specified is being used in a substitute",
    224         "name": "ERROR_IS_SUBST_PATH"},
    225   147: {"description": "Not enough resources are available to process this command",
    226         "name": "ERROR_IS_JOIN_PATH"},
    227   148: {"description": "The path specified cannot be used at this time",
    228         "name": "ERROR_PATH_BUSY"},
    229   149: {"description": "An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute",
    230         "name": "ERROR_IS_SUBST_TARGET"},
    231   150: {"description": "System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed",
    232         "name": "ERROR_SYSTEM_TRACE"},
    233   151: {"description": "The number of specified semaphore events for DosMuxSemWait is not correct",
    234         "name": "ERROR_INVALID_EVENT_COUNT"},
    235   152: {"description": "DosMuxSemWait did not execute; too many semaphores are already set",
    236         "name": "ERROR_TOO_MANY_MUXWAITERS"},
    237   153: {"description": "The DosMuxSemWait list is not correct",
    238         "name": "ERROR_INVALID_LIST_FORMAT"},
    239   154: {"description": "The volume label you entered exceeds the label character limit of the target file system",
    240         "name": "ERROR_LABEL_TOO_LONG"},
    241   155: {"description": "Cannot create another thread",
    242         "name": "ERROR_TOO_MANY_TCBS"},
    243   156: {"description": "The recipient process has refused the signal",
    244         "name": "ERROR_SIGNAL_REFUSED"},
    245   157: {"description": "The segment is already discarded and cannot be locked",
    246         "name": "ERROR_DISCARDED"},
    247   158: {"description": "The segment is already unlocked",
    248         "name": "ERROR_NOT_LOCKED"},
    249   159: {"description": "The address for the thread ID is not correct",
    250         "name": "ERROR_BAD_THREADID_ADDR"},
    251   160: {"description": "One or more arguments are not correct",
    252         "name": "ERROR_BAD_ARGUMENTS"},
    253   161: {"description": "The specified path is invalid",
    254         "name": "ERROR_BAD_PATHNAME"},
    255   162: {"description": "A signal is already pending",
    256         "name": "ERROR_SIGNAL_PENDING"},
    257   164: {"description": "No more threads can be created in the system",
    258         "name": "ERROR_MAX_THRDS_REACHED"},
    259   167: {"description": "Unable to lock a region of a file",
    260         "name": "ERROR_LOCK_FAILED"},
    261   170: {"description": "The requested resource is in use",
    262         "name": "ERROR_BUSY"},
    263   171: {"description": "Device's command support detection is in progress",
    264         "name": "ERROR_DEVICE_SUPPORT_IN_PROGRESS"},
    265   173: {"description": "A lock request was not outstanding for the supplied cancel region",
    266         "name": "ERROR_CANCEL_VIOLATION"},
    267   174: {"description": "The file system does not support atomic changes to the lock type",
    268         "name": "ERROR_ATOMIC_LOCKS_NOT_SUPPORTED"},
    269   180: {"description": "The system detected a segment number that was not correct",
    270         "name": "ERROR_INVALID_SEGMENT_NUMBER"},
    271   182: {"description": "The operating system cannot run %1",
    272         "name": "ERROR_INVALID_ORDINAL"},
    273   183: {"description": "Cannot create a file when that file already exists",
    274         "name": "ERROR_ALREADY_EXISTS"},
    275   186: {"description": "The flag passed is not correct",
    276         "name": "ERROR_INVALID_FLAG_NUMBER"},
    277   187: {"description": "The specified system semaphore name was not found",
    278         "name": "ERROR_SEM_NOT_FOUND"},
    279   188: {"description": "The operating system cannot run %1",
    280         "name": "ERROR_INVALID_STARTING_CODESEG"},
    281   189: {"description": "The operating system cannot run %1",
    282         "name": "ERROR_INVALID_STACKSEG"},
    283   190: {"description": "The operating system cannot run %1",
    284         "name": "ERROR_INVALID_MODULETYPE"},
    285   191: {"description": "Cannot run %1 in Win32 mode",
    286         "name": "ERROR_INVALID_EXE_SIGNATURE"},
    287   192: {"description": "The operating system cannot run %1",
    288         "name": "ERROR_EXE_MARKED_INVALID"},
    289   193: {"description": "%1 is not a valid Win32 application",
    290         "name": "ERROR_BAD_EXE_FORMAT"},
    291   194: {"description": "The operating system cannot run %1",
    292         "name": "ERROR_ITERATED_DATA_EXCEEDS_64k"},
    293   195: {"description": "The operating system cannot run %1",
    294         "name": "ERROR_INVALID_MINALLOCSIZE"},
    295   196: {"description": "The operating system cannot run this application program",
    296         "name": "ERROR_DYNLINK_FROM_INVALID_RING"},
    297   197: {"description": "The operating system is not presently configured to run this application",
    298         "name": "ERROR_IOPL_NOT_ENABLED"},
    299   198: {"description": "The operating system cannot run %1",
    300         "name": "ERROR_INVALID_SEGDPL"},
    301   199: {"description": "The operating system cannot run this application program",
    302         "name": "ERROR_AUTODATASEG_EXCEEDS_64k"},
    303   200: {"description": "The code segment cannot be greater than or equal to 64K",
    304         "name": "ERROR_RING2SEG_MUST_BE_MOVABLE"},
    305   201: {"description": "The operating system cannot run %1",
    306         "name": "ERROR_RELOC_CHAIN_XEEDS_SEGLIM"},
    307   202: {"description": "The operating system cannot run %1",
    308         "name": "ERROR_INFLOOP_IN_RELOC_CHAIN"},
    309   203: {"description": "The system could not find the environment option that was entered",
    310         "name": "ERROR_ENVVAR_NOT_FOUND"},
    311   205: {"description": "No process in the command subtree has a signal handler",
    312         "name": "ERROR_NO_SIGNAL_SENT"},
    313   206: {"description": "The filename or extension is too long",
    314         "name": "ERROR_FILENAME_EXCED_RANGE"},
    315   207: {"description": "The ring 2 stack is in use",
    316         "name": "ERROR_RING2_STACK_IN_USE"},
    317   208: {"description": "The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified",
    318         "name": "ERROR_META_EXPANSION_TOO_LONG"},
    319   209: {"description": "The signal being posted is not correct",
    320         "name": "ERROR_INVALID_SIGNAL_NUMBER"},
    321   210: {"description": "The signal handler cannot be set",
    322         "name": "ERROR_THREAD_1_INACTIVE"},
    323   212: {"description": "The segment is locked and cannot be reallocated",
    324         "name": "ERROR_LOCKED"},
    325   214: {"description": "Too many dynamic-link modules are attached to this program or dynamic-link module",
    326         "name": "ERROR_TOO_MANY_MODULES"},
    327   215: {"description": "Cannot nest calls to LoadModule",
    328         "name": "ERROR_NESTING_NOT_ALLOWED"},
    329   216: {"description": "This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher",
    330         "name": "ERROR_EXE_MACHINE_TYPE_MISMATCH"},
    331   217: {"description": "The image file %1 is signed, unable to modify",
    332         "name": "ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY"},
    333   218: {"description": "The image file %1 is strong signed, unable to modify",
    334         "name": "ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY"},
    335   220: {"description": "This file is checked out or locked for editing by another user",
    336         "name": "ERROR_FILE_CHECKED_OUT"},
    337   221: {"description": "The file must be checked out before saving changes",
    338         "name": "ERROR_CHECKOUT_REQUIRED"},
    339   222: {"description": "The file type being saved or retrieved has been blocked",
    340         "name": "ERROR_BAD_FILE_TYPE"},
    341   223: {"description": "The file size exceeds the limit allowed and cannot be saved",
    342         "name": "ERROR_FILE_TOO_LARGE"},
    343   224: {"description": "Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically",
    344         "name": "ERROR_FORMS_AUTH_REQUIRED"},
    345   225: {"description": "Operation did not complete successfully because the file contains a virus or potentially unwanted software",
    346         "name": "ERROR_VIRUS_INFECTED"},
    347   226: {"description": "This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of this virus or potentially unwanted software, the file has been removed from this location",
    348         "name": "ERROR_VIRUS_DELETED"},
    349   229: {"description": "The pipe is local", "name": "ERROR_PIPE_LOCAL"},
    350   230: {"description": "The pipe state is invalid", "name": "ERROR_BAD_PIPE"},
    351   231: {"description": "All pipe instances are busy",
    352         "name": "ERROR_PIPE_BUSY"},
    353   232: {"description": "The pipe is being closed", "name": "ERROR_NO_DATA"},
    354   233: {"description": "No process is on the other end of the pipe",
    355         "name": "ERROR_PIPE_NOT_CONNECTED"},
    356   234: {"description": "More data is available", "name": "ERROR_MORE_DATA"},
    357   240: {"description": "The session was canceled",
    358         "name": "ERROR_VC_DISCONNECTED"},
    359   254: {"description": "The specified extended attribute name was invalid",
    360         "name": "ERROR_INVALID_EA_NAME"},
    361   255: {"description": "The extended attributes are inconsistent",
    362         "name": "ERROR_EA_LIST_INCONSISTENT"},
    363   258: {"description": "The wait operation timed out", "name": "WAIT_TIMEOUT"},
    364   259: {"description": "No more data is available",
    365         "name": "ERROR_NO_MORE_ITEMS"},
    366   266: {"description": "The copy functions cannot be used",
    367         "name": "ERROR_CANNOT_COPY"},
    368   267: {"description": "The directory name is invalid",
    369         "name": "ERROR_DIRECTORY"},
    370   275: {"description": "The extended attributes did not fit in the buffer",
    371         "name": "ERROR_EAS_DIDNT_FIT"},
    372   276: {"description": "The extended attribute file on the mounted file system is corrupt",
    373         "name": "ERROR_EA_FILE_CORRUPT"},
    374   277: {"description": "The extended attribute table file is full",
    375         "name": "ERROR_EA_TABLE_FULL"},
    376   278: {"description": "The specified extended attribute handle is invalid",
    377         "name": "ERROR_INVALID_EA_HANDLE"},
    378   282: {"description": "The mounted file system does not support extended attributes",
    379         "name": "ERROR_EAS_NOT_SUPPORTED"},
    380   288: {"description": "Attempt to release mutex not owned by caller",
    381         "name": "ERROR_NOT_OWNER"},
    382   298: {"description": "Too many posts were made to a semaphore",
    383         "name": "ERROR_TOO_MANY_POSTS"},
    384   299: {"description": "Only part of a ReadProcessMemory or WriteProcessMemory request was completed",
    385         "name": "ERROR_PARTIAL_COPY"},
    386   300: {"description": "The oplock request is denied",
    387         "name": "ERROR_OPLOCK_NOT_GRANTED"},
    388   301: {"description": "An invalid oplock acknowledgment was received by the system",
    389         "name": "ERROR_INVALID_OPLOCK_PROTOCOL"},
    390   302: {"description": "The volume is too fragmented to complete this operation",
    391         "name": "ERROR_DISK_TOO_FRAGMENTED"},
    392   303: {"description": "The file cannot be opened because it is in the process of being deleted",
    393         "name": "ERROR_DELETE_PENDING"},
    394   304: {"description": "Short name settings may not be changed on this volume due to the global registry setting",
    395         "name": "ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING"},
    396   305: {"description": "Short names are not enabled on this volume",
    397         "name": "ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME"},
    398   306: {"description": "The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume",
    399         "name": "ERROR_SECURITY_STREAM_IS_INCONSISTENT"},
    400   307: {"description": "A requested file lock operation cannot be processed due to an invalid byte range",
    401         "name": "ERROR_INVALID_LOCK_RANGE"},
    402   308: {"description": "The subsystem needed to support the image type is not present",
    403         "name": "ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT"},
    404   309: {"description": "The specified file already has a notification GUID associated with it",
    405         "name": "ERROR_NOTIFICATION_GUID_ALREADY_DEFINED"},
    406   310: {"description": "An invalid exception handler routine has been detected",
    407         "name": "ERROR_INVALID_EXCEPTION_HANDLER"},
    408   311: {"description": "Duplicate privileges were specified for the token",
    409         "name": "ERROR_DUPLICATE_PRIVILEGES"},
    410   312: {"description": "No ranges for the specified operation were able to be processed",
    411         "name": "ERROR_NO_RANGES_PROCESSED"},
    412   313: {"description": "Operation is not allowed on a file system internal file",
    413         "name": "ERROR_NOT_ALLOWED_ON_SYSTEM_FILE"},
    414   314: {"description": "The physical resources of this disk have been exhausted",
    415         "name": "ERROR_DISK_RESOURCES_EXHAUSTED"},
    416   315: {"description": "The token representing the data is invalid",
    417         "name": "ERROR_INVALID_TOKEN"},
    418   316: {"description": "The device does not support the command feature",
    419         "name": "ERROR_DEVICE_FEATURE_NOT_SUPPORTED"},
    420   317: {"description": "The system cannot find message text for message number 0x%1 in the message file for %2",
    421         "name": "ERROR_MR_MID_NOT_FOUND"},
    422   318: {"description": "The scope specified was not found",
    423         "name": "ERROR_SCOPE_NOT_FOUND"},
    424   319: {"description": "The Central Access Policy specified is not defined on the target machine",
    425         "name": "ERROR_UNDEFINED_SCOPE"},
    426   320: {"description": "The Central Access Policy obtained from Active Directory is invalid",
    427         "name": "ERROR_INVALID_CAP"},
    428   321: {"description": "The device is unreachable",
    429         "name": "ERROR_DEVICE_UNREACHABLE"},
    430   322: {"description": "The target device has insufficient resources to complete the operation",
    431         "name": "ERROR_DEVICE_NO_RESOURCES"},
    432   323: {"description": "A data integrity checksum error occurred. Data in the file stream is corrupt",
    433         "name": "ERROR_DATA_CHECKSUM_ERROR"},
    434   324: {"description": "An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation",
    435         "name": "ERROR_INTERMIXED_KERNEL_EA_OPERATION"},
    436   326: {"description": "Device does not support file-level TRIM",
    437         "name": "ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED"},
    438   327: {"description": "The command specified a data offset that does not align to the device's granularity/alignment",
    439         "name": "ERROR_OFFSET_ALIGNMENT_VIOLATION"},
    440   328: {"description": "The command specified an invalid field in its parameter list",
    441         "name": "ERROR_INVALID_FIELD_IN_PARAMETER_LIST"},
    442   329: {"description": "An operation is currently in progress with the device",
    443         "name": "ERROR_OPERATION_IN_PROGRESS"},
    444   330: {"description": "An attempt was made to send down the command via an invalid path to the target device",
    445         "name": "ERROR_BAD_DEVICE_PATH"},
    446   331: {"description": "The command specified a number of descriptors that exceeded the maximum supported by the device",
    447         "name": "ERROR_TOO_MANY_DESCRIPTORS"},
    448   332: {"description": "Scrub is disabled on the specified file",
    449         "name": "ERROR_SCRUB_DATA_DISABLED"},
    450   333: {"description": "The storage device does not provide redundancy",
    451         "name": "ERROR_NOT_REDUNDANT_STORAGE"},
    452   334: {"description": "An operation is not supported on a resident file",
    453         "name": "ERROR_RESIDENT_FILE_NOT_SUPPORTED"},
    454   335: {"description": "An operation is not supported on a compressed file",
    455         "name": "ERROR_COMPRESSED_FILE_NOT_SUPPORTED"},
    456   336: {"description": "An operation is not supported on a directory",
    457         "name": "ERROR_DIRECTORY_NOT_SUPPORTED"},
    458   350: {"description": "No action was taken as a system reboot is required",
    459         "name": "ERROR_FAIL_NOACTION_REBOOT"},
    460   351: {"description": "The shutdown operation failed",
    461         "name": "ERROR_FAIL_SHUTDOWN"},
    462   352: {"description": "The restart operation failed",
    463         "name": "ERROR_FAIL_RESTART"},
    464   353: {"description": "The maximum number of sessions has been reached",
    465         "name": "ERROR_MAX_SESSIONS_REACHED"},
    466   400: {"description": "The thread is already in background processing mode",
    467         "name": "ERROR_THREAD_MODE_ALREADY_BACKGROUND"},
    468   401: {"description": "The thread is not in background processing mode",
    469         "name": "ERROR_THREAD_MODE_NOT_BACKGROUND"},
    470   402: {"description": "The process is already in background processing mode",
    471         "name": "ERROR_PROCESS_MODE_ALREADY_BACKGROUND"},
    472   403: {"description": "The process is not in background processing mode",
    473         "name": "ERROR_PROCESS_MODE_NOT_BACKGROUND"},
    474   487: {"description": "Attempt to access invalid address",
    475         "name": "ERROR_INVALID_ADDRESS"}
    476  }
    477
    478 -def get_error_string(error_code):
    479      """Error code lookup.
    480      @param error_code: error code.
    481      @return: error description if found.
    482      """
    483      if error_code in ERRORS:
    484          return "%s (%s)" % (ERRORS[error_code]["description"], ERRORS[error_code]["name"])
    485      else:
    486          return str(error_code)
    487