Win32 Error Codes 3 Win32 Error Codes The following table provides a list of Win32 error codes. 0 [ } 12] , 100 [ } 13] , 200 [ } 15] , 1001 [ } 16] , 1100 [ } 18] , 1200 [ } 20] , 1400 [ } 25] , 1600 [ } 26] , 1800 [ } 30] , 2000 [ } 32] , 3000 [ } 32] , 5000 [ } 35] , 6000 [ } 38] , 8000 [ } 39] , 8500 [ } 48] , 9001 [ } 51] , 10004 [ } 53] , 12000 [ } 55] , Diagnostics 12 Version: 1.0 Error Description decimal Hexadecimal Name 0 0x00000000 ERROR SUCCESS _ The operation completed successfully. 1 0x00000001 ERROR INVALID FUNCTION _ _ Incorrect function. 2 0x00000002 ERROR FILE NOT FOUND _ _ _ The system cannot find the file specified.
3 0x00000003 ERROR PATH NOT FOUND _ _ _ The system cannot find the path specified. 4 0x00000004 ERROR TOO MANY OPEN FILES _ _ _ _ The system cannot open the file. 5 0x00000005 ERROR ACCESS DENIED _ _ Access is denied. 6 0x00000006 ERROR INVALID HANDLE _ _ The handle is invalid. 7 0x00000007 ERROR ARENA TRASHED _ _ The storage control blocks were destroyed. 8 0x00000008 ERROR NOT ENOUGH MEMORY _ _ _ Not enough storage is available to process this command. 9 0x00000009 ERROR INVALID BLOCK _ _ The storage control block address is invalid. 10 0x0000000A ERROR BAD ENVIRONMENT _ _ The environment is incorrect.
11 0x0000000B ERROR BAD FORMAT _ _ An attempt was made to load a program with an incorrect format. 12 0x0000000C ERROR INVALID ACCESS _ _ The access code is invalid. 13 0x0000000D ERROR INVALID DATA _ _ The data is invalid. 14 0x0000000E ERROR OUTOFMEMORY _ Not enough storage is available to complete this operation. 15 0x0000000F ERROR INVALID DRIVE _ _ The system cannot find the drive specified. 16 0x00000010 ERROR CURRENT DIRECTORY _ _ The directory cannot be removed. 17 0x00000011 ERROR NOT SAME DEVICE _ _ _ The system cannot move the file to a different disk drive. 18 0x00000012 ERROR NO MORE FILES _ _ _ There are no more files.
19 0x00000013 ERROR WRITE PROTECT _ _ The media is write protected. 20 0x00000014 ERROR BAD UNIT _ _ The system cannot find the device specified. 21 0x00000015 ERROR NOT READY _ _ The device is not ready. 22 0x00000016 ERROR BAD COMMAND _ _ The device does not recognize the command. 23 0x00000017 ERROR CRC _ Data error (cyclic redundancy check). 24 0x00000018 ERROR BAD LENGTH _ _ The program issued a command but the com- mand length is incorrect. 25 0x00000019 ERROR SEEK _ The drive cannot locate a specific area or track on the disk. 26 0x0000001A ERROR NOT DOS DISK _ _ _ The specified disk or diskette cannot be ac- cessed.
27 0x0000001B ERROR SECTOR NOT FOUND _ _ _ The drive cannot find the sector requested. 28 0x0000001C ERROR OUT OF PAPER _ _ _ The printer is out of paper. 29 0x0000001D ERROR WRITE FAULT _ _ The system cannot write to the specified device. 30 0x0000001E ERROR READ FAULT _ _ The system cannot read from the specified de- vice. 31 0x0000001F ERROR GEN FAILURE _ _ A device attached to the system is not function- ing. 32 0x00000020 ERROR SHARING VIOLATION _ _ The process cannot access the file because it is being used by another process. 33 0x00000021 ERROR LOCK VIOLATION _ _ The process cannot access the file because an- other process has locked a portion of the file.
34 0x00000022 ERROR WRONG DISK _ _ The wrong diskette is in the drive. Insert %2 (Vol- ume Serial Number: %3) into drive %1. 36 0x00000024 ERROR SHARING BUFFER EXCEEDED _ _ _ Too many files opened for sharing. 38 0x00000026 ERROR HANDLE EOF _ _ Reached the end of the file. 39 0x00000027 ERROR HANDLE DISK FULL _ _ _ The disk is full. 50 0x00000032 ERROR NOT SUPPORTED _ _ The request is not supported. 51 0x00000033 ERROR REM NOT LIST _ _ _ The remote computer is not available.