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

Source Code for Module lib.common.errors

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