⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winerr.odl

📁 The code for this article was written for version 1.0 of the Active Template Library (ATL). The cu
💻 ODL
📖 第 1 页 / 共 4 页
字号:

[
uuid(54674058-3A82-101B-8181-00AA003743D3),
helpstring("Error Constants"),
#ifdef WIN32
dllname("KERNEL32")
#else
dllname("KRNL386.EXE")
#endif
]
module ErrorConst {


    [ helpstring("The operation completed successfully") ]
    const long ERROR_SUCCESS                    = 0;
    [ helpstring("The operation completed successfully") ]
    const long NO_ERROR = 0;
    [ helpstring("Incorrect function") ]
    const long ERROR_INVALID_FUNCTION           = 1;
    [ helpstring("The system cannot find the file specified") ]
    const long ERROR_FILE_NOT_FOUND             = 2;
    [ helpstring("The system cannot find the path specified") ]
    const long ERROR_PATH_NOT_FOUND             = 3;
    [ helpstring("The system cannot open the file") ]
    const long ERROR_TOO_MANY_OPEN_FILES        = 4;
    [ helpstring("Access is denied") ]
    const long ERROR_ACCESS_DENIED              = 5;
    [ helpstring("The handle is invalid") ]
    const long ERROR_INVALID_HANDLE             = 6;
    [ helpstring("The storage control blocks were destroyed") ]
    const long ERROR_ARENA_TRASHED              = 7;
    [ helpstring("Not enough storage is available to process this command") ]
    const long ERROR_NOT_ENOUGH_MEMORY          = 8;
    [ helpstring("The storage control block address is invalid") ]
    const long ERROR_INVALID_BLOCK              = 9;
    [ helpstring("The environment is incorrect") ]
    const long ERROR_BAD_ENVIRONMENT            = 10;
    [ helpstring("An attempt was made to load a program with an incorrect format") ]
    const long ERROR_BAD_FORMAT                 = 11;
    [ helpstring("The access code is invalid") ]
    const long ERROR_INVALID_ACCESS             = 12;
    [ helpstring("The data is invalid") ]
    const long ERROR_INVALID_DATA               = 13;
    [ helpstring("Not enough storage is available to complete this operation") ]
    const long ERROR_OUTOFMEMORY                = 14;
    [ helpstring("The system cannot find the drive specified") ]
    const long ERROR_INVALID_DRIVE              = 15;
    [ helpstring("The directory cannot be removed") ]
    const long ERROR_CURRENT_DIRECTORY          = 16;
    [ helpstring("The system cannot move the file to a different disk drive") ]
    const long ERROR_NOT_SAME_DEVICE            = 17;
    [ helpstring("There are no more files") ]
    const long ERROR_NO_MORE_FILES              = 18;
    [ helpstring("The media is write protected") ]
    const long ERROR_WRITE_PROTECT              = 19;
    [ helpstring("The system cannot find the device specified") ]
    const long ERROR_BAD_UNIT                   = 20;
    [ helpstring("The device is not ready") ]
    const long ERROR_NOT_READY                  = 21;
    [ helpstring("The device does not recognize the command") ]
    const long ERROR_BAD_COMMAND                = 22;
    [ helpstring("Data error (cyclic redundancy check") ]
    const long ERROR_CRC                        = 23;
    [ helpstring("The program issued a command but the command length is incorrect") ]
    const long ERROR_BAD_LENGTH                 = 24;
    [ helpstring("The drive cannot locate a specific area or track on the disk") ]
    const long ERROR_SEEK                       = 25;
    [ helpstring("The specified disk or diskette cannot be accessed") ]
    const long ERROR_NOT_DOS_DISK               = 26;
    [ helpstring("The drive cannot find the sector requested") ]
    const long ERROR_SECTOR_NOT_FOUND           = 27;
    [ helpstring("The printer is out of paper") ]
    const long ERROR_OUT_OF_PAPER               = 28;
    [ helpstring("The system cannot write to the specified device") ]
    const long ERROR_WRITE_FAULT                = 29;
    [ helpstring("The system cannot read from the specified device") ]
    const long ERROR_READ_FAULT                 = 30;
    [ helpstring("A device attached to the system is not functioning") ]
    const long ERROR_GEN_FAILURE                = 31;
    [ helpstring("The process cannot access the file because it is being used by another process") ]
    const long ERROR_SHARING_VIOLATION          = 32;
    [ helpstring("The process cannot access the file because another process has locked a portion of the file") ]
    const long ERROR_LOCK_VIOLATION             = 33;
    [ helpstring("The wrong diskette is in the drive") ]
    const long ERROR_WRONG_DISK                 = 34;
    [ helpstring("Too many files opened for sharing") ]
    const long ERROR_SHARING_BUFFER_EXCEEDED    = 36;
    [ helpstring("Reached end of file") ]
    const long ERROR_HANDLE_EOF                 = 38;
    [ helpstring("The disk is full") ]
    const long ERROR_HANDLE_DISK_FULL           = 39;
    [ helpstring("The network request is not supported") ]
    const long ERROR_NOT_SUPPORTED              = 50;
    [ helpstring("The remote computer is not available") ]
    const long ERROR_REM_NOT_LIST               = 51;
    [ helpstring("A duplicate name exists on the network") ]
    const long ERROR_DUP_NAME                   = 52;
    [ helpstring("The network path was not found") ]
    const long ERROR_BAD_NETPATH                = 53;
    [ helpstring("The network is busy") ]
    const long ERROR_NETWORK_BUSY               = 54;
    [ helpstring("The specified network resource or device is no longer available") ]
    const long ERROR_DEV_NOT_EXIST              = 55;
    [ helpstring("The network BIOS command limit has been reached") ]
    const long ERROR_TOO_MANY_CMDS              = 56;
    [ helpstring("A network adapter hardware error occurred") ]
    const long ERROR_ADAP_HDW_ERR               = 57;
    [ helpstring("The specified server cannot perform the requested operation") ]
    const long ERROR_BAD_NET_RESP               = 58;
    [ helpstring("An unexpected network error occurred") ]
    const long ERROR_UNEXP_NET_ERR              = 59;
    [ helpstring("The remote adapter is not compatible") ]
    const long ERROR_BAD_REM_ADAP               = 60;
    [ helpstring("The printer queue is full") ]
    const long ERROR_PRINTQ_FULL                = 61;
    [ helpstring("Space to store the file waiting to be printed is not available on the server") ]
    const long ERROR_NO_SPOOL_SPACE             = 62;
    [ helpstring("Your file waiting to be printed was deleted") ]
    const long ERROR_PRINT_CANCELLED            = 63;
    [ helpstring("The specified network name is no longer available") ]
    const long ERROR_NETNAME_DELETED            = 64;
    [ helpstring("Network access is denied") ]
    const long ERROR_NETWORK_ACCESS_DENIED      = 65;
    [ helpstring("The network resource type is not correct") ]
    const long ERROR_BAD_DEV_TYPE               = 66;
    [ helpstring("The network name cannot be found") ]
    const long ERROR_BAD_NET_NAME               = 67;
    [ helpstring("The name limit for the local computer network adapter card was exceeded") ]
    const long ERROR_TOO_MANY_NAMES             = 68;
    [ helpstring("The network BIOS session limit was exceeded") ]
    const long ERROR_TOO_MANY_SESS              = 69;
    [ helpstring("The remote server has been paused or is in the process of being started") ]
    const long ERROR_SHARING_PAUSED             = 70;
    [ helpstring("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") ]
    const long ERROR_REQ_NOT_ACCEP              = 71;
    [ helpstring("The specified printer or disk device has been paused") ]
    const long ERROR_REDIR_PAUSED               = 72;
    [ helpstring("The file exists") ]
    const long ERROR_FILE_EXISTS                = 80;
    [ helpstring("The directory or file cannot be created") ]
    const long ERROR_CANNOT_MAKE                = 82;
    [ helpstring("Fail on INT 2") ]
    const long ERROR_FAIL_I24                   = 83;
    [ helpstring("Storage to process this request is not available") ]
    const long ERROR_OUT_OF_STRUCTURES          = 84;
    [ helpstring("The local device name is already in use") ]
    const long ERROR_ALREADY_ASSIGNED           = 85;
    [ helpstring("The specified network password is not correct") ]
    const long ERROR_INVALID_PASSWORD           = 86;
    [ helpstring("The parameter is incorrect") ]
    const long ERROR_INVALID_PARAMETER          = 87;
    [ helpstring("A write fault occurred on the network") ]
    const long ERROR_NET_WRITE_FAULT            = 88;
    [ helpstring("The system cannot start another process at this time") ]
    const long ERROR_NO_PROC_SLOTS              = 89;
    [ helpstring("Cannot create another system semaphore") ]
    const long ERROR_TOO_MANY_SEMAPHORES        = 100;
    [ helpstring("The exclusive semaphore is owned by another process") ]
    const long ERROR_EXCL_SEM_ALREADY_OWNED     = 101;
    [ helpstring("The semaphore is set and cannot be closed") ]
    const long ERROR_SEM_IS_SET                 = 102;
    [ helpstring("The semaphore cannot be set again") ]
    const long ERROR_TOO_MANY_SEM_REQUESTS      = 103;
    [ helpstring("Cannot request exclusive semaphores at interrupt time") ]
    const long ERROR_INVALID_AT_INTERRUPT_TIME  = 104;
    [ helpstring("The previous ownership of this semaphore has ended") ]
    const long ERROR_SEM_OWNER_DIED             = 105;
    [ helpstring("Insert the diskette for drive") ]
    const long ERROR_SEM_USER_LIMIT             = 106;
    [ helpstring("Program stopped because alternate diskette was not inserted") ]
    const long ERROR_DISK_CHANGE                = 107;
    [ helpstring("The disk is in use or locked by another process") ]
    const long ERROR_DRIVE_LOCKED               = 108;
    [ helpstring("The pipe has been ended") ]
    const long ERROR_BROKEN_PIPE                = 109;
    [ helpstring("The system cannot open the device or file specified") ]
    const long ERROR_OPEN_FAILED                = 110;
    [ helpstring("The file name is too long") ]
    const long ERROR_BUFFER_OVERFLOW            = 111;
    [ helpstring("There is not enough space on the disk") ]
    const long ERROR_DISK_FULL                  = 112;
    [ helpstring("No more internal file identifiers available") ]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -