Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/msf/windows_error.rb
Views: 11766
# -*- coding: binary -*-12#3# Windows system error codes (0-499)4#5# http://msdn.microsoft.com/en-us/library/ms681382%28v=VS.85%29.aspx6#78module Msf910class WindowsError1112#13# Constants14#15SUCCESS = 016INVALID_FUNCTION = 117FILE_NOT_FOUND = 218PATH_NOT_FOUND = 319TOO_MANY_OPEN_FILES = 420ACCESS_DENIED = 521INVALID_HANDLE = 622ARENA_TRASHED = 723NOT_ENOUGH_MEMORY = 824INVALID_BLOCK = 925BAD_ENVIRONMENT = 1026BAD_FORMAT = 1127INVALID_ACCESS = 1228INVALID_DATA = 1329OUTOFMEMORY = 1430INVALID_DRIVE = 1531CURRENT_DIRECTORY = 1632NOT_SAME_DEVICE = 1733NO_MORE_FILES = 1834WRITE_PROTECT = 1935BAD_UNIT = 2036NOT_READY = 2137BAD_COMMAND = 2238CRC = 2339BAD_LENGTH = 2440SEEK = 2541NOT_DOS_DISK = 2642SECTOR_NOT_FOUND = 2743OUT_OF_PAPER = 2844WRITE_FAULT = 2945READ_FAULT = 3046GEN_FAILURE = 3147SHARING_VIOLATION = 3248LOCK_VIOLATION = 3349WRONG_DISK = 3450SHARING_BUFFER_EXCEEDED = 3651HANDLE_EOF = 3852HANDLE_DISK_FULL = 3953NOT_SUPPORTED = 5054REM_NOT_LIST = 5155DUP_NAME = 5256BAD_NETPATH = 5357NETWORK_BUSY = 5458DEV_NOT_EXIST = 5559TOO_MANY_CMDS = 5660ADAP_HDW_ERR = 5761BAD_NET_RESP = 5862UNEXP_NET_ERR = 5963BAD_REM_ADAP = 6064PRINTQ_FULL = 6165NO_SPOOL_SPACE = 6266PRINT_CANCELLED = 6367NETNAME_DELETED = 6468NETWORK_ACCESS_DENIED = 6569BAD_DEV_TYPE = 6670BAD_NET_NAME = 6771TOO_MANY_NAMES = 6872TOO_MANY_SESS = 6973SHARING_PAUSED = 7074REQ_NOT_ACCEP = 7175REDIR_PAUSED = 7276FILE_EXISTS = 8077CANNOT_MAKE = 8278FAIL_I24 = 8379OUT_OF_STRUCTURES = 8480ALREADY_ASSIGNED = 8581INVALID_PASSWORD = 8682INVALID_PARAMETER = 8783NET_WRITE_FAULT = 8884NO_PROC_SLOTS = 898586TOO_MANY_SEMAPHORES = 10087EXCL_SEM_ALREADY_OWNED = 10188SEM_IS_SET = 10289TOO_MANY_SEM_REQUESTS = 10390INVALID_AT_INTERRUPT_TIME = 10491SEM_OWNER_DIED = 10592SEM_USER_LIMIT = 10693DISK_CHANGE = 10794DRIVE_LOCKED = 10895BROKEN_PIPE = 10996OPEN_FAILED = 11097BUFFER_OVERFLOW = 11198DISK_FULL = 11299NO_MORE_SEARCH_HANDLES = 113100INVALID_TARGET_HANDLE = 114101INVALID_CATEGORY = 117102INVALID_VERIFY_SWITCH = 118103BAD_DRIVER_LEVEL = 119104CALL_NOT_IMPLEMENTED = 120105SEM_TIMEOUT = 121106INSUFFICIENT_BUFFER = 122107INVALID_NAME = 123108INVALID_LEVEL = 124109NO_VOLUME_LABEL = 125110MOD_NOT_FOUND = 126111PROC_NOT_FOUND = 127112WAIT_NO_CHILDREN = 128113CHILD_NOT_COMPLETE = 129114DIRECT_ACCESS_HANDLE = 130115NEGATIVE_SEEK = 131116SEEK_ON_DEVICE = 132117IS_JOIN_TARGET = 133118IS_JOINED = 134119IS_SUBSTED = 135120NOT_JOINED = 136121NOT_SUBSTED = 137122JOIN_TO_JOIN = 138123SUBST_TO_SUBST = 139124JOIN_TO_SUBST = 140125SUBST_TO_JOIN = 141126BUSY_DRIVE = 142127SAME_DRIVE = 143128DIR_NOT_ROOT = 144129DIR_NOT_EMPTY = 145130IS_SUBST_PATH = 146131IS_JOIN_PATH = 147132PATH_BUSY = 148133IS_SUBST_TARGET = 149134SYSTEM_TRACE = 150135INVALID_EVENT_COUNT = 151136TOO_MANY_MUXWAITERS = 152137INVALID_LIST_FORMAT = 153138LABEL_TOO_LONG = 154139TOO_MANY_TCBS = 155140SIGNAL_REFUSED = 156141DISCARDED = 157142NOT_LOCKED = 158143BAD_THREADID_ADDR = 159144BAD_ARGUMENTS = 160145BAD_PATHNAME = 161146SIGNAL_PENDING = 162147MAX_THRDS_REACHED = 164148LOCK_FAILED = 167149BUSY = 170150CANCEL_VIOLATION = 173151ATOMIC_LOCKS_NOT_SUPPORTED = 174152INVALID_SEGMENT_NUMBER = 180153INVALID_ORDINAL = 182154ALREADY_EXISTS = 183155INVALID_FLAG_NUMBER = 186156SEM_NOT_FOUND = 187157INVALID_STARTING_CODESEG = 188158INVALID_STACKSEG = 189159INVALID_MODULETYPE = 190160INVALID_EXE_SIGNATURE = 191161EXE_MARKED_INVALID = 192162BAD_EXE_FORMAT = 193163ITERATED_DATA_EXCEEDS_64k = 194164INVALID_MINALLOCSIZE = 195165DYNLINK_FROM_INVALID_RING = 196166IOPL_NOT_ENABLED = 197167INVALID_SEGDPL = 198168AUTODATASEG_EXCEEDS_64k = 199169170RING2SEG_MUST_BE_MOVABLE = 200171RELOC_CHAIN_XEEDS_SEGLIM = 201172INFLOOP_IN_RELOC_CHAIN = 202173ENVVAR_NOT_FOUND = 203174NO_SIGNAL_SENT = 205175FILENAME_EXCED_RANGE = 206176RING2_STACK_IN_USE = 207177META_EXPANSION_TOO_LONG = 208178INVALID_SIGNAL_NUMBER = 209179THREAD_1_INACTIVE = 210180LOCKED = 212181TOO_MANY_MODULES = 214182NESTING_NOT_ALLOWED = 215183EXE_MACHINE_TYPE_MISMATCH = 216184EXE_CANNOT_MODIFY_SIGNED_BINARY = 217185EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218186FILE_CHECKED_OUT = 220187CHECKOUT_REQUIRED = 221188BAD_FILE_TYPE = 222189FILE_TOO_LARGE = 223190FORMS_AUTH_REQUIRED = 224191VIRUS_INFECTED = 225192VIRUS_DELETED = 226193PIPE_LOCAL = 229194BAD_PIPE = 230195PIPE_BUSY = 231196NO_DATA = 232197PIPE_NOT_CONNECTED = 233198MORE_DATA = 234199VC_DISCONNECTED = 240200INVALID_EA_NAME = 254201EA_LIST_INCONSISTENT = 255202WAIT_TIMEOUT = 258203NO_MORE_ITEMS = 259204CANNOT_COPY = 266205DIRECTORY = 267206EAS_DIDNT_FIT = 275207EA_FILE_CORRUPT = 276208EA_TABLE_FULL = 277209INVALID_EA_HANDLE = 278210EAS_NOT_SUPPORTED = 282211NOT_OWNER = 288212TOO_MANY_POSTS = 298213PARTIAL_COPY = 299214215OPLOCK_NOT_GRANTED = 300216INVALID_OPLOCK_PROTOCOL = 301217DISK_TOO_FRAGMENTED = 302218DELETE_PENDING = 303219INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304220SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305221SECURITY_STREAM_IS_INCONSISTENT = 306222INVALID_LOCK_RANGE = 307223IMAGE_SUBSYSTEM_NOT_PRESENT = 308224NOTIFICATION_GUID_ALREADY_DEFINED = 309225MR_MID_NOT_FOUND = 317226SCOPE_NOT_FOUND = 318227FAIL_NOACTION_REBOOT = 350228FAIL_SHUTDOWN = 351229FAIL_RESTART = 352230MAX_SESSIONS_REACHED = 353231232THREAD_MODE_ALREADY_BACKGROUND = 400233THREAD_MODE_NOT_BACKGROUND = 401234PROCESS_MODE_ALREADY_BACKGROUND = 402235PROCESS_MODE_NOT_BACKGROUND = 403236INVALID_ADDRESS = 487237238# Socket stuff239ADDRESS_IN_USE = 10048240241#242# Return a string representation of the constant for a number243#244def self.const_name(code)245self.constants.each { |c|246return c.to_s if self.const_get(c) == code247}248return nil249end250251#252# Return the description of an error code253def self.description(code)254255case code256when SUCCESS257"The operation completed successfully."258when INVALID_FUNCTION259"Incorrect function."260when FILE_NOT_FOUND261"The system cannot find the file specified."262when PATH_NOT_FOUND263"The system cannot find the path specified."264when TOO_MANY_OPEN_FILES265"The system cannot open the file."266when ACCESS_DENIED267"Access is denied."268when INVALID_HANDLE269"The handle is invalid."270when ARENA_TRASHED271"The storage control blocks were destroyed."272when NOT_ENOUGH_MEMORY273"Not enough storage is available to process this command."274when INVALID_BLOCK275"The storage control block address is invalid."276when BAD_ENVIRONMENT277"The environment is incorrect."278when BAD_FORMAT279"An attempt was made to load a program with an incorrect format."280when INVALID_ACCESS281"The access code is invalid."282when INVALID_DATA283"The data is invalid."284when OUTOFMEMORY285"Not enough storage is available to complete this operation."286when INVALID_DRIVE287"The system cannot find the drive specified."288when CURRENT_DIRECTORY289"The directory cannot be removed."290when NOT_SAME_DEVICE291"The system cannot move the file to a different disk drive."292when NO_MORE_FILES293"There are no more files."294when WRITE_PROTECT295"The media is write protected."296when BAD_UNIT297"The system cannot find the device specified."298when NOT_READY299"The device is not ready."300when BAD_COMMAND301"The device does not recognize the command."302when CRC303"Data error ;."304when BAD_LENGTH305"The program issued a command but the command length is incorrect."306when SEEK307"The drive cannot locate a specific area or track on the disk."308when NOT_DOS_DISK309"The specified disk or diskette cannot be accessed."310when SECTOR_NOT_FOUND311"The drive cannot find the sector requested."312when OUT_OF_PAPER313"The printer is out of paper."314when WRITE_FAULT315"The system cannot write to the specified device."316when READ_FAULT317"The system cannot read from the specified device."318when GEN_FAILURE319"A device attached to the system is not functioning."320when SHARING_VIOLATION321"The process cannot access the file because it is being used by another process."322when LOCK_VIOLATION323"The process cannot access the file because another process has locked a portion of the file."324when WRONG_DISK325"The wrong diskette is in the drive. Insert %2 ; into drive %1."326when SHARING_BUFFER_EXCEEDED327"Too many files opened for sharing."328when HANDLE_EOF329"Reached the end of the file."330when HANDLE_DISK_FULL331"The disk is full."332when NOT_SUPPORTED333"The request is not supported."334when REM_NOT_LIST335"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."336when DUP_NAME337"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."338when BAD_NETPATH339"The network path was not found."340when NETWORK_BUSY341"The network is busy."342when DEV_NOT_EXIST343"The specified network resource or device is no longer available."344when TOO_MANY_CMDS345"The network BIOS command limit has been reached."346when ADAP_HDW_ERR347"A network adapter hardware error occurred."348when BAD_NET_RESP349"The specified server cannot perform the requested operation."350when UNEXP_NET_ERR351"An unexpected network error occurred."352when BAD_REM_ADAP353"The remote adapter is not compatible."354when PRINTQ_FULL355"The printer queue is full."356when NO_SPOOL_SPACE357"Space to store the file waiting to be printed is not available on the server."358when PRINT_CANCELLED359"Your file waiting to be printed was deleted."360when NETNAME_DELETED361"The specified network name is no longer available."362when NETWORK_ACCESS_DENIED363"Network access is denied."364when BAD_DEV_TYPE365"The network resource type is not correct."366when BAD_NET_NAME367"The network name cannot be found."368when TOO_MANY_NAMES369"The name limit for the local computer network adapter card was exceeded."370when TOO_MANY_SESS371"The network BIOS session limit was exceeded."372when SHARING_PAUSED373"The remote server has been paused or is in the process of being started."374when REQ_NOT_ACCEP375"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."376when REDIR_PAUSED377"The specified printer or disk device has been paused."378when FILE_EXISTS379"The file exists."380when CANNOT_MAKE381"The directory or file cannot be created."382when FAIL_I24383"Fail on INT 24."384when OUT_OF_STRUCTURES385"Storage to process this request is not available."386when ALREADY_ASSIGNED387"The local device name is already in use."388when INVALID_PASSWORD389"The specified network password is not correct."390when INVALID_PARAMETER391"The parameter is incorrect."392when NET_WRITE_FAULT393"A write fault occurred on the network."394when NO_PROC_SLOTS395"The system cannot start another process at this time."396when TOO_MANY_SEMAPHORES397"Cannot create another system semaphore."398when EXCL_SEM_ALREADY_OWNED399"The exclusive semaphore is owned by another process."400when SEM_IS_SET401"The semaphore is set and cannot be closed."402when TOO_MANY_SEM_REQUESTS403"The semaphore cannot be set again."404when INVALID_AT_INTERRUPT_TIME405"Cannot request exclusive semaphores at interrupt time."406when SEM_OWNER_DIED407"The previous ownership of this semaphore has ended."408when SEM_USER_LIMIT409"Insert the diskette for drive %1."410when DISK_CHANGE411"The program stopped because an alternate diskette was not inserted."412when DRIVE_LOCKED413"The disk is in use or locked by another process."414when BROKEN_PIPE415"The pipe has been ended."416when OPEN_FAILED417"The system cannot open the device or file specified."418when BUFFER_OVERFLOW419"The file name is too long."420when DISK_FULL421"There is not enough space on the disk."422when NO_MORE_SEARCH_HANDLES423"No more internal file identifiers available."424when INVALID_TARGET_HANDLE425"The target internal file identifier is incorrect."426when INVALID_CATEGORY427"The IOCTL call made by the application program is not correct."428when INVALID_VERIFY_SWITCH429"The verify-on-write switch parameter value is not correct."430when BAD_DRIVER_LEVEL431"The system does not support the command requested."432when CALL_NOT_IMPLEMENTED433"This function is not supported on this system."434when SEM_TIMEOUT435"The semaphore timeout period has expired."436when INSUFFICIENT_BUFFER437"The data area passed to a system call is too small."438when INVALID_NAME439"The filename, directory name, or volume label syntax is incorrect."440when INVALID_LEVEL441"The system call level is not correct."442when NO_VOLUME_LABEL443"The disk has no volume label."444when MOD_NOT_FOUND445"The specified module could not be found."446when PROC_NOT_FOUND447"The specified procedure could not be found."448when WAIT_NO_CHILDREN449"There are no child processes to wait for."450when CHILD_NOT_COMPLETE451"The %1 application cannot be run in Win32 mode."452when DIRECT_ACCESS_HANDLE453"Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O."454when NEGATIVE_SEEK455"An attempt was made to move the file pointer before the beginning of the file."456when SEEK_ON_DEVICE457"The file pointer cannot be set on the specified device or file."458when IS_JOIN_TARGET459"A JOIN or SUBST command cannot be used for a drive that contains previously joined drives."460when IS_JOINED461"An attempt was made to use a JOIN or SUBST command on a drive that has already been joined."462when IS_SUBSTED463"An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted."464when NOT_JOINED465"The system tried to delete the JOIN of a drive that is not joined."466when NOT_SUBSTED467"The system tried to delete the substitution of a drive that is not substituted."468when JOIN_TO_JOIN469"The system tried to join a drive to a directory on a joined drive."470when SUBST_TO_SUBST471"The system tried to substitute a drive to a directory on a substituted drive."472when JOIN_TO_SUBST473"The system tried to join a drive to a directory on a substituted drive."474when SUBST_TO_JOIN475"The system tried to SUBST a drive to a directory on a joined drive."476when BUSY_DRIVE477"The system cannot perform a JOIN or SUBST at this time."478when SAME_DRIVE479"The system cannot join or substitute a drive to or for a directory on the same drive."480when DIR_NOT_ROOT481"The directory is not a subdirectory of the root directory."482when DIR_NOT_EMPTY483"The directory is not empty."484when IS_SUBST_PATH485"The path specified is being used in a substitute."486when IS_JOIN_PATH487"Not enough resources are available to process this command."488when PATH_BUSY489"The path specified cannot be used at this time."490when IS_SUBST_TARGET491"An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute."492when SYSTEM_TRACE493"System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed."494when INVALID_EVENT_COUNT495"The number of specified semaphore events for DosMuxSemWait is not correct."496when TOO_MANY_MUXWAITERS497"DosMuxSemWait did not execute; too many semaphores are already set."498when INVALID_LIST_FORMAT499"The DosMuxSemWait list is not correct."500when LABEL_TOO_LONG501"The volume label you entered exceeds the label character limit of the target file system."502when TOO_MANY_TCBS503"Cannot create another thread."504when SIGNAL_REFUSED505"The recipient process has refused the signal."506when DISCARDED507"The segment is already discarded and cannot be locked."508when NOT_LOCKED509"The segment is already unlocked."510when BAD_THREADID_ADDR511"The address for the thread ID is not correct."512when BAD_ARGUMENTS513"One or more arguments are not correct."514when BAD_PATHNAME515"The specified path is invalid."516when SIGNAL_PENDING517"A signal is already pending."518when MAX_THRDS_REACHED519"No more threads can be created in the system."520when LOCK_FAILED521"Unable to lock a region of a file."522when BUSY523"The requested resource is in use."524when CANCEL_VIOLATION525"A lock request was not outstanding for the supplied cancel region."526when ATOMIC_LOCKS_NOT_SUPPORTED527"The file system does not support atomic changes to the lock type."528when INVALID_SEGMENT_NUMBER529"The system detected a segment number that was not correct."530when INVALID_ORDINAL531"The operating system cannot run %1."532when ALREADY_EXISTS533"Cannot create a file when that file already exists."534when INVALID_FLAG_NUMBER535"The flag passed is not correct."536when SEM_NOT_FOUND537"The specified system semaphore name was not found."538when INVALID_STARTING_CODESEG539"The operating system cannot run %1."540when INVALID_STACKSEG541"The operating system cannot run %1."542when INVALID_MODULETYPE543"The operating system cannot run %1."544when INVALID_EXE_SIGNATURE545"Cannot run %1 in Win32 mode."546when EXE_MARKED_INVALID547"The operating system cannot run %1."548when BAD_EXE_FORMAT549"is not a valid Win32 application."550when ITERATED_DATA_EXCEEDS_64k551"The operating system cannot run %1."552when INVALID_MINALLOCSIZE553"The operating system cannot run %1."554when DYNLINK_FROM_INVALID_RING555"The operating system cannot run this application program."556when IOPL_NOT_ENABLED557"The operating system is not presently configured to run this application."558when INVALID_SEGDPL559"The operating system cannot run %1."560when AUTODATASEG_EXCEEDS_64k561"The operating system cannot run this application program."562when RING2SEG_MUST_BE_MOVABLE563"The code segment cannot be greater than or equal to 64K."564when RELOC_CHAIN_XEEDS_SEGLIM565"The operating system cannot run %1."566when INFLOOP_IN_RELOC_CHAIN567"The operating system cannot run %1."568when ENVVAR_NOT_FOUND569"The system could not find the environment option that was entered."570when NO_SIGNAL_SENT571"No process in the command subtree has a signal handler."572when FILENAME_EXCED_RANGE573"The filename or extension is too long."574when RING2_STACK_IN_USE575"The ring 2 stack is in use."576when META_EXPANSION_TOO_LONG577"The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified."578when INVALID_SIGNAL_NUMBER579"The signal being posted is not correct."580when THREAD_1_INACTIVE581"The signal handler cannot be set."582when LOCKED583"The segment is locked and cannot be reallocated."584when TOO_MANY_MODULES585"Too many dynamic-link modules are attached to this program or dynamic-link module."586when NESTING_NOT_ALLOWED587"Cannot nest calls to LoadModule."588when EXE_MACHINE_TYPE_MISMATCH589"The version of %1 is not compatible with the version you're running. Check your computer's system information to see whether you need a x86 ; or x64 ; version of the program, and then contact the software publisher."590when EXE_CANNOT_MODIFY_SIGNED_BINARY591"The image file %1 is signed, unable to modify."592when EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY593"The image file %1 is strong signed, unable to modify."594when FILE_CHECKED_OUT595"This file is checked out or locked for editing by another user."596when CHECKOUT_REQUIRED597"The file must be checked out before saving changes."598when BAD_FILE_TYPE599"The file type being saved or retrieved has been blocked."600when FILE_TOO_LARGE601"The file size exceeds the limit allowed and cannot be saved."602when FORMS_AUTH_REQUIRED603"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."604when VIRUS_INFECTED605"Operation did not complete successfully because the file contains a virus."606when VIRUS_DELETED607"This file contains a virus and cannot be opened. Due to the nature of this virus, the file has been removed from this location."608when PIPE_LOCAL609"The pipe is local."610when BAD_PIPE611"The pipe state is invalid."612when PIPE_BUSY613"All pipe instances are busy."614when NO_DATA615"The pipe is being closed."616when PIPE_NOT_CONNECTED617"No process is on the other end of the pipe."618when MORE_DATA619"More data is available."620when VC_DISCONNECTED621"The session was canceled."622when INVALID_EA_NAME623"The specified extended attribute name was invalid."624when EA_LIST_INCONSISTENT625"The extended attributes are inconsistent."626when WAIT_TIMEOUT627"The wait operation timed out."628when NO_MORE_ITEMS629"No more data is available."630when CANNOT_COPY631"The copy functions cannot be used."632when DIRECTORY633"The directory name is invalid."634when EAS_DIDNT_FIT635"The extended attributes did not fit in the buffer."636when EA_FILE_CORRUPT637"The extended attribute file on the mounted file system is corrupt."638when EA_TABLE_FULL639"The extended attribute table file is full."640when INVALID_EA_HANDLE641"The specified extended attribute handle is invalid."642when EAS_NOT_SUPPORTED643"The mounted file system does not support extended attributes."644when NOT_OWNER645"Attempt to release mutex not owned by caller."646when TOO_MANY_POSTS647"Too many posts were made to a semaphore."648when PARTIAL_COPY649"Only part of a ReadProcessMemory or WriteProcessMemory request was completed."650when OPLOCK_NOT_GRANTED651"The oplock request is denied."652when INVALID_OPLOCK_PROTOCOL653"An invalid oplock acknowledgment was received by the system."654when DISK_TOO_FRAGMENTED655"The volume is too fragmented to complete this operation."656when DELETE_PENDING657"The file cannot be opened because it is in the process of being deleted."658when INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING659"Short name settings may not be changed on this volume due to the global registry setting."660when SHORT_NAMES_NOT_ENABLED_ON_VOLUME661"Short names are not enabled on this volume."662when SECURITY_STREAM_IS_INCONSISTENT663"The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume."664when INVALID_LOCK_RANGE665"A requested file lock operation cannot be processed due to an invalid byte range."666when IMAGE_SUBSYSTEM_NOT_PRESENT667"The subsystem needed to support the image type is not present."668when NOTIFICATION_GUID_ALREADY_DEFINED669"The specified file already has a notification GUID associated with it."670when MR_MID_NOT_FOUND671"The system cannot find message text for message number 0x%1 in the message file for %2."672when SCOPE_NOT_FOUND673"The scope specified was not found."674when FAIL_NOACTION_REBOOT675"No action was taken as a system reboot is required."676when FAIL_SHUTDOWN677"The shutdown operation failed."678when FAIL_RESTART679"The restart operation failed."680when MAX_SESSIONS_REACHED681"The maximum number of sessions has been reached."682when THREAD_MODE_ALREADY_BACKGROUND683"The thread is already in background processing mode."684when THREAD_MODE_NOT_BACKGROUND685"The thread is not in background processing mode."686when PROCESS_MODE_ALREADY_BACKGROUND687"The process is already in background processing mode."688when PROCESS_MODE_NOT_BACKGROUND689"The process is not in background processing mode."690when INVALID_ADDRESS691"Attempt to access invalid address."692when ADDRESS_IN_USE693"The address/port is already in use."694else695"#{code}"696end697end698699end700701end702703704