GetlastError ()-1

Source: Internet
Author: User
The operation of ERROR_SUCCESS0 corresponding to the constant value of the information constant is successful. NO_ERROR0 is successfully completed. The ERROR_INVALID_FUNCTION1 function is incorrect. The specified file cannot be found in ERROR_FILE_NOT_FOUND2. The specified path cannot be found in ERROR_PATH_NOT_FOUND3. ERROR_TOO_MANY_OPEN_FILES4

The operation of ERROR_SUCCESS 0 corresponding to the constant value of the information constant is successful. NO_ERROR 0 is successfully completed. The ERROR_INVALID_FUNCTION 1 function is incorrect. ERROR_FILE_NOT_FOUND 2 the system cannot find the specified file. ERROR_PATH_NOT_FOUND 3 the system cannot find the specified path. ERROR_TOO_MANY_OPEN_FILES 4

Information constant Constant Value Corresponding information
ERROR_SUCCESS 0 The operation is successful.
NO_ERROR 0 The operation is successful.
ERROR_INVALID_FUNCTION 1 The function is incorrect.
ERROR_FILE_NOT_FOUND 2 The system cannot find the specified file.
ERROR_PATH_NOT_FOUND 3 The specified path cannot be found.
ERROR_TOO_MANY_OPEN_FILES 4 The system cannot open the file.
ERROR_ACCESS_DENIED 5 Access denied.
ERROR_INVALID_HANDLE 6 The handle is invalid.
ERROR_ARENA_TRASHED 7 The storage control block is damaged.
ERROR_NOT_ENOUGH_MEMORY 8 The command cannot be processed because the storage space is insufficient.
ERROR_INVALID_BLOCK 9 The storage block address is invalid.
ERROR_BAD_ENVIRONMENT 10 The environment is incorrect.
ERROR_BAD_FORMAT 11 Attackers try to load programs with incorrect format.
ERROR_INVALID_ACCESS 12 The access code is invalid.
ERROR_INVALID_DATA 13 Invalid Data.
ERROR_OUTOFMEMORY 14 The operation cannot be completed because the storage space is insufficient.
ERROR_INVALID_DRIVE 15 The system cannot find the specified drive.
ERROR_CURRENT_DIRECTORY 16 The directory cannot be deleted.
ERROR_NOT_SAME_DEVICE 17 The system cannot move files to different drives.
ERROR_NO_MORE_FILES 18 No more files.
ERROR_WRITE_PROTECT 19 The media is protected by writing.
ERROR_BAD_UNIT 20 The system cannot find the specified device.
ERROR_NOT_READY 21 The device is not ready.
ERROR_BAD_COMMAND 22 The device does not recognize this command.
ERROR_CRC 23 Data error (cyclic redundancy check ).
ERROR_BAD_LENGTH 24 The program sends out the command, but the command length is incorrect.
ERROR_SEEK 25 The drive cannot find a specific area or track on the disk.
ERROR_NOT_DOS_DISK 26 The specified disk or floppy disk cannot be accessed.
ERROR_SECTOR_NOT_FOUND 27 The drive cannot find the requested sector.
ERROR_OUT_OF_PAPER 28 Printer paper shortage.
ERROR_WRITE_FAULT 29 The system cannot write data to the specified device.
ERROR_READ_FAULT 30 The system cannot read data from the specified device.
ERROR_GEN_FAILURE 31 Devices connected to the system do not play a role.
ERROR_SHARING_VIOLATION 32 Another program is using this file and the process cannot be accessed.
ERROR_LOCK_VIOLATION 33 Another program has locked part of the file and the process cannot be accessed.
ERROR_WRONG_DISK 34 The floppy disk in the drive is incorrect. Insert % 2 (volume serial number: % 3) Drive % 1.
ERROR_SHARING_BUFFER_EXCEEDED 36 Too many open files are shared.
ERROR_HANDLE_EOF 38 It has reached the end of the file.
ERROR_HANDLE_DISK_FULL 39 The disk is full.
ERROR_NOT_SUPPORTED 50 Requests are not supported.
ERROR_REM_NOT_LIST 51 Windows cannot find the network path. Make sure that the network path is correct and the target computer is not busy or disabled. If Windows still cannot find the network path, contact the network administrator.
ERROR_DUP_NAME 52 The network has a duplicate name and is not connected. Go to System in Control Panel to change the computer name and try again.
ERROR_BAD_NETPATH 53 The network path cannot be found.
ERROR_NETWORK_BUSY 54 The network is busy.
ERROR_DEV_NOT_EXIST 55 The specified network resource or device is no longer available.
ERROR_TOO_MANY_CMDS 56 The Network BIOS command limit has been reached.
ERROR_ADAP_HDW_ERR 57 Network adapter hardware error.
ERROR_BAD_NET_RESP 58 The specified server cannot run the requested operation.
ERROR_UNEXP_NET_ERR 59 An unexpected network error occurs.
ERROR_BAD_REM_ADAP 60 The remote adapter is not compatible.
ERROR_PRINTQ_FULL 61 The printer queue is full.
ERROR_NO_SPOOL_SPACE 62 There is no storage space for the files waiting for printing on the server.
ERROR_PRINT_CANCELLED 63 The file waiting for printing has been deleted.
ERROR_NETNAME_DELETED 64 The specified network name is no longer available.
ERROR_NETWORK_ACCESS_DENIED 65 Deny Network Access.
ERROR_BAD_DEV_TYPE 66 The network resource type is incorrect.
ERROR_BAD_NET_NAME 67 The network name cannot be found.
ERROR_TOO_MANY_NAMES 68 Exceeds the name limit of the local computer network adapter card.
ERROR_TOO_MANY_SESS 69 The Network BIOS session limit is exceeded.
ERROR_SHARING_PAUSED 70 The remote server has been suspended or is being started.
ERROR_REQ_NOT_ACCEP 71 The maximum number of connections to the computer has been reached and the remote computer cannot be connected.
ERROR_REDIR_PAUSED 72 The specified printer or disk device has been suspended.
ERROR_FILE_EXISTS 80 File exists.
ERROR_CANNOT_MAKE 82 You cannot create a directory or file.
ERROR_FAIL_I24 83 INT 24 fault.
ERROR_OUT_OF_STRUCTURES 84 Unable to obtain the bucket for processing this request.
ERROR_ALREADY_ASSIGNED 85 The local device name is in use.
ERROR_INVALID_PASSWORD 86 The specified network password is incorrect.
ERROR_INVALID_PARAMETER 87 The parameter is incorrect.
ERROR_NET_WRITE_FAULT 88 A write error occurs on the network.
ERROR_NO_PROC_SLOTS 89 The system cannot start another process at this time.
ERROR_TOO_MANY_SEMAPHORES 100 You cannot create another system signal.
ERROR_EXCL_SEM_ALREADY_OWNED 101 Another process has an exclusive traffic signal.
ERROR_SEM_IS_SET 102 Unable to close because a traffic signal is set.
ERROR_TOO_MANY_SEM_REQUESTS 103 No more traffic signals can be set.
ERROR_INVALID_AT_INTERRUPT_TIME 104 An exclusive traffic signal cannot be requested during interruption.
ERROR_SEM_OWNER_DIED 105 The previous ownership of the traffic signal has ended.
ERROR_SEM_USER_LIMIT 106 Insert a floppy disk into drive % 1.
ERROR_DISK_CHANGE 107 The program stops because another floppy disk is not inserted.
ERROR_DRIVE_LOCKED 108 The disk is in use or locked by another process.
ERROR_BROKEN_PIPE 109 The MPs queue has ended.
ERROR_OPEN_FAILED 110 The system cannot open the specified device or file.
ERROR_BUFFER_OVERFLOW 111 The file name is too long.
ERROR_DISK_FULL 112 Insufficient disk space.
ERROR_NO_MORE_SEARCH_HANDLES 113 No more internal file identifiers.
ERROR_INVALID_TARGET_HANDLE 114 The identifier of the target internal file is incorrect.
ERROR_INVALID_CATEGORY 117 The IOCTL call sent by the application is incorrect.
ERROR_INVALID_VERIFY_SWITCH 118 Verify that the written switch parameter value is incorrect.
ERROR_BAD_DRIVER_LEVEL 119 The system does not support the requested command.
ERROR_CALL_NOT_IMPLEMENTED 120 The system does not support this function.
ERROR_SEM_TIMEOUT 121 The Traffic Signal timeout time has reached.
ERROR_INSUFFICIENT_BUFFER 122 The data area passed to the system call is too small.
ERROR_INVALID_NAME 123 The file name, directory name, or volume label syntax is incorrect.
ERROR_INVALID_LEVEL 124 The system call level is incorrect.
ERROR_NO_VOLUME_LABEL 125 The disk has no volume tag.
ERROR_MOD_NOT_FOUND 126 The specified module cannot be found.
ERROR_PROC_NOT_FOUND 127 The specified program cannot be found.
ERROR_WAIT_NO_CHILDREN 128 There are no pending sub-processes.
ERROR_CHILD_NOT_COMPLETE 129 % 1 the application cannot run in Win32 mode.
ERROR_DIRECT_ACCESS_HANDLE 130 Try to use the file handle that has opened the disk partition for operations (rather than the original disk I/O.
ERROR_NEGATIVE_SEEK 131 Try to move the file pointer to the beginning of the file.
ERROR_SEEK_ON_DEVICE 132 The file pointer cannot be set on the specified device or file.
ERROR_IS_JOIN_TARGET 133 The JOIN or SUBST command cannot be used for a drive that contains a previously attached drive.
ERROR_IS_JOINED 134 Try to use the JOIN or SUBST command on the merged drive.
ERROR_IS_SUBSTED 135 Try to use the JOIN or SUBST command on the merged drive.
ERROR_NOT_JOINED 136 The system tries to remove the join of the unmerged drive.
ERROR_NOT_SUBSTED 137 The system tries to remove the unsubstituted drive's SUBST.
ERROR_JOIN_TO_JOIN 138 The system tries to merge the drive to the directory on the merged drive.
ERROR_SUBST_TO_SUBST 139 The system tries to replace the drive with a directory on the alternative drive.
ERROR_JOIN_TO_SUBST 140 The system tries to merge the drive into a directory on the replacement drive.
ERROR_SUBST_TO_JOIN 141 The system tries to replace the drive with the directory on the merged drive.
ERROR_BUSY_DRIVE 142 The system cannot run JOIN or SUBST at this time.
ERROR_SAME_DRIVE 143 The system cannot merge the drive to or replace it with a directory on the same drive.
ERROR_DIR_NOT_ROOT 144 The directory is not a subdirectory under the root directory.
ERROR_DIR_NOT_EMPTY 145 The directory is not empty.
ERROR_IS_SUBST_PATH 146 The specified path is used in substitution.
ERROR_IS_JOIN_PATH 147 The command cannot be processed due to insufficient resources.
ERROR_PATH_BUSY 148 The specified path cannot be used at this time.
ERROR_IS_SUBST_TARGET 149 An attempt is made to merge or replace the drive with a drive where the directory on the drive is the previous replacement destination.
ERROR_SYSTEM_TRACE 150 The System trace information is not specified in the CONFIG. SYS file, or tracing is not allowed.
ERROR_INVALID_EVENT_COUNT 151 The number of traffic light events specified for DosMuxSemWait is incorrect.
ERROR_TOO_MANY_MUXWAITERS 152 DosMuxSemWait is not running; too many traffic signals have been set.
ERROR_INVALID_LIST_FORMAT 153 The DosMuxSemWait list is incorrect.
ERROR_LABEL_TOO_LONG 154 The entered volume tag exceeds the length limit of the target file system.
ERROR_TOO_MANY_TCBS 155 Another thread cannot be created.
ERROR_SIGNAL_REFUSED 156 The recipient process rejects this signal.
ERROR_DISCARDED 157 Segment has been abandoned and cannot be locked.
ERROR_NOT_LOCKED 158 Segment has been unlocked.
ERROR_BAD_THREADID_ADDR 159 The thread ID address is incorrect.
ERROR_BAD_ARGUMENTS 160 At least one parameter is incorrect.
ERROR_BAD_PATHNAME 161 The specified path is invalid.
ERROR_SIGNAL_PENDING 162 The signal has been paused.
ERROR_MAX_THRDS_REACHED 164 You cannot create more threads in the system.
ERROR_LOCK_FAILED 167 The file region cannot be locked.
ERROR_BUSY 170 The requested resource is in use.
ERROR_CANCEL_VIOLATION 173 The request to provide the canceled region has been completed.
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED 174 The file system does not support minimum unit changes of the lock type.
ERROR_INVALID_SEGMENT_NUMBER 180 The system detects the wrong field number.
ERROR_INVALID_ORDINAL 182 The operating system cannot run % 1.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.