error.h
来自「用于查询PC机上的USB端口是否有设备挂接上」· C头文件 代码 · 共 444 行 · 第 1/2 页
H
444 行
/*
* Microsoft Confidential
* Copyright (C) Microsoft Corporation 1991
* All Rights Reserved.
*/
/*** ERROR.H - DOS Error Codes
*
* The DOS 2.0 and above "XENIX-style" calls return error codes
* through AX. If an error occurred then the carry bit will be set
* and the error code is in AX. If no error occurred then the
* carry bit is reset and AX contains returned info.
*
* Since the set of error codes is being extended as we extend the operating
* system, we have provided a means for applications to ask the system for a
* recommended course of action when they receive an error.
*
* The GetExtendedError system call returns a universal error, an error
* location and a recommended course of action. The universal error code is
* a symptom of the error REGARDLESS of the context in which GetExtendedError
* is issued.
*/
/*
* 2.0 error codes
*/
#define NO_ERROR 0 /* Success */
#define ERROR_INVALID_FUNCTION 1
#define ERROR_FILE_NOT_FOUND 2
#define ERROR_PATH_NOT_FOUND 3
#define ERROR_TOO_MANY_OPEN_FILES 4
#define ERROR_ACCESS_DENIED 5
#define ERROR_INVALID_HANDLE 6
#define ERROR_ARENA_TRASHED 7
#define ERROR_NOT_ENOUGH_MEMORY 8
#define ERROR_INVALID_BLOCK 9
#define ERROR_BAD_ENVIRONMENT 10
#define ERROR_BAD_FORMAT 11
#define ERROR_INVALID_ACCESS 12
#define ERROR_INVALID_DATA 13
/***** reserved EQU 14 ; *****/
#define ERROR_INVALID_DRIVE 15
#define ERROR_CURRENT_DIRECTORY 16
#define ERROR_NOT_SAME_DEVICE 17
#define ERROR_NO_MORE_FILES 18
/*
* These are the universal int 24 mappings for
* the old INT 24 set of errors.
*/
#define ERROR_WRITE_PROTECT 19
#define ERROR_BAD_UNIT 20
#define ERROR_NOT_READY 21
#define ERROR_BAD_COMMAND 22
#define ERROR_CRC 23
#define ERROR_BAD_LENGTH 24
#define ERROR_SEEK 25
#define ERROR_NOT_DOS_DISK 26
#define ERROR_SECTOR_NOT_FOUND 27
#define ERROR_OUT_OF_PAPER 28
#define ERROR_WRITE_FAULT 29
#define ERROR_READ_FAULT 30
#define ERROR_GEN_FAILURE 31
/*
* The 3.0 and 4.0 error codes reported through INT 24.
*/
#define ERROR_SHARING_VIOLATION 32
#define ERROR_LOCK_VIOLATION 33
#define ERROR_WRONG_DISK 34
#define ERROR_FCB_UNAVAILABLE 35
#define ERROR_SHARING_BUFFER_EXCEEDED 36
#define ERROR_CODE_PAGE_MISMATCHED 37 /* DOS 4.00 */
#define ERROR_HANDLE_EOF 38 /* DOS 4.00 */
#define ERROR_HANDLE_DISK_FULL 39 /* DOS 4.00 */
/*
* These are the new volume locking error codes reported for Windows 95
*/
#define error_volume_locked 40
#define error_invalid_volume_lock 41
#define error_volume_lock_failed 42
/*
* OEM network-related errors are 50-79.
*/
#define ERROR_NOT_SUPPORTED 50
#define ERROR_NET_ACCESS_DENIED 65
#define ERROR_BAD_NET_NAME 67 /* Network name not found */
/*
* End of INT 24 reportable errors
*/
#define ERROR_FILE_EXISTS 80
#define ERROR_DUP_FCB 81
#define ERROR_CANNOT_MAKE 82
#define ERROR_FAIL_I24 83
/*
* 3.0 and 4.0 network related error codes.
*/
#define ERROR_OUT_OF_STRUCTURES 84
#define ERROR_ALREADY_ASSIGNED 85
#define ERROR_INVALID_PASSWORD 86
#define ERROR_INVALID_PARAMETER 87
#define ERROR_NET_WRITE_FAULT 88
#define ERROR_SYS_COMP_NOT_LOADED 90 /* DOS 4.00 */
/*
* The following errors exist in C12 version of error.h. Apparently
* ERROR_SYS_COMP_NOT_LOADED got stepped on.
*/
#define ERROR_NOT_FROZEN 90
#define ERR_TSTOVFL 91 /* timer service table overflow */
#define ERR_TSTDUP 92 /* timer service table duplicate */
#define ERROR_NO_ITEMS 93 /* There were no items to operate upon */
#define ERROR_INTERRUPT 95 /* interrupted system call */
#define ERROR_TOO_MANY_SEMAPHORES 100
#define ERROR_EXCL_SEM_ALREADY_OWNED 101
#define ERROR_SEM_IS_SET 102
#define ERROR_TOO_MANY_SEM_REQUESTS 103
#define ERROR_INVALID_AT_INTERRUPT_TIME 104
#define ERROR_SEM_OWNER_DIED 105 /* waitsem found owner died */
#define ERROR_SEM_USER_LIMIT 106 /* too many procs have this sem */
#define ERROR_DISK_CHANGE 107 /* insert disk b into drive a */
#define ERROR_DRIVE_LOCKED 108 /* drive locked by another process */
#define ERROR_BROKEN_PIPE 109 /* write on pipe with no reader */
#define ERROR_OPEN_FAILED 110 /* open/created failed due to */
/*
* OS/2-compatible error codes.
* NOTE: values in the range 100 to 599 may be defined
* by OS/2. Do NOT add NEW error codes in this range.
*/
#define ERROR_BUFFER_OVERFLOW 111 /* Buffer too small for data */
/*
* More C12 errors.
*/
#define ERROR_DISK_FULL 112 /* not enough space on the disk */
/* (DOSNEWSIZE/w_NewSize) */
#define ERROR_NO_MORE_SEARCH_HANDLES 113 /* can't allocate another search */
/* structure and handle. */
/* (DOSFINDFIRST/w_FindFirst) */
#define ERROR_INVALID_TARGET_HANDLE 114 /* Target handle in DOSDUPHANDLE */
/* is invalid */
#define ERROR_PROTECTION_VIOLATION 115 /* Bad user virtual address */
#define ERROR_VIOKBD_REQUEST 116
#define ERROR_INVALID_CATEGORY 117 /* Category for DEVIOCTL in not */
/* defined */
#define ERROR_INVALID_VERIFY_SWITCH 118 /* invalid value passed for */
/* verify flag */
#define ERROR_BAD_DRIVER_LEVEL 119 /* DosDevIOCTL looks for a level */
/* four driver. If the driver */
/* is not level four we return */
/* this code */
#define ERROR_CALL_NOT_IMPLEMENTED 120 /* returned from stub api calls. */
/* This call will disappear when */
/* all the api's are implemented. */
#define ERROR_SEM_TIMEOUT 121 /* Time out happened from the */
/* semaphore api functions. */
#define ERROR_INSUFFICIENT_BUFFER 122 /* Some call require the */
/* application to pass in a buffer */
/* filled with data. This error is */
/* returned if the data buffer is too */
/* small. For example: DosSetFileInfo */
/* requires 4 bytes of data. If a */
/* two byte buffer is passed in then */
/* this error is returned. */
/* error_buffer_overflow is used when */
/* the output buffer in not big enough. */
#define ERROR_INVALID_NAME 123 /* illegal character or malformed */
/* file system name */
#define ERROR_INVALID_LEVEL 124 /* unimplemented level for info */
/* retrieval or setting */
#define ERROR_NO_VOLUME_LABEL 125 /* no volume label found with */
/* DosQFSInfo command */
#define ERROR_MOD_NOT_FOUND 126 /* w_getprocaddr,w_getmodhandle */
#define ERROR_PROC_NOT_FOUND 127 /* w_getprocaddr */
#define ERROR_WAIT_NO_CHILDREN 128 /* CWait finds to children */
#define ERROR_CHILD_NOT_COMPLETE 129 /* CWait children not dead yet */
/*This is a temporary fix for the 4-19-86 build this should be changed when */
/* we get the file from MS */
#define ERROR_DIRECT_ACCESS_HANDLE 130 /* handle operation is invalid */
/* for direct disk access */
/* handles */
#define ERROR_NEGATIVE_SEEK 131 /* application tried to seek */
/* with negative offset */
#define ERROR_SEEK_ON_DEVICE 132 /* application tried to seek */
/* on device or pipe */
/* */
/* The following are errors generated by the join and subst workers */
/* */
#define ERROR_IS_JOIN_TARGET 133
#define ERROR_IS_JOINED 134
#define ERROR_IS_SUBSTED 135
#define ERROR_NOT_JOINED 136
#define ERROR_NOT_SUBSTED 137
#define ERROR_JOIN_TO_JOIN 138
#define ERROR_SUBST_TO_SUBST 139
#define ERROR_JOIN_TO_SUBST 140
#define ERROR_SUBST_TO_JOIN 141
#define ERROR_BUSY_DRIVE 142
#define ERROR_SAME_DRIVE 143
#define ERROR_DIR_NOT_ROOT 144
#define ERROR_DIR_NOT_EMPTY 145
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?