ERROR_NOT_SAME_DEVICEġ7 (0x11) - The system cannot move the file to a different disk drive. ERROR_CURRENT_DIRECTORYġ6 (0x10) - The directory cannot be removed. ERROR_INVALID_DRIVEġ5 (0xF) - The system cannot find the drive specified. ERROR_OUTOFMEMORYġ4 (0圎) - Not enough storage is available to complete this operation. ERROR_INVALID_DATAġ3 (0xD) - The data is invalid.
ERROR_INVALID_ACCESSġ2 (0xC) - The access code is invalid. ERROR_BAD_FORMATġ1 (0xB) - An attempt was made to load a program with an incorrect format. ERROR_BAD_ENVIRONMENTġ0 (0xA) - The environment is incorrect. ERROR_INVALID_BLOCKĩ (0x9) - The storage control block address is invalid. ERROR_NOT_ENOUGH_MEMORYĨ (0x8) - Not enough storage is available to process this command. ERROR_ARENA_TRASHEDħ (0x7) - The storage control blocks were destroyed. ERROR_INVALID_HANDLEĦ (0圆) - The handle is invalid. ERROR_ACCESS_DENIEDĥ (0x5) - Access is denied. ERROR_TOO_MANY_OPEN_FILESĤ (0x4) - The system cannot open the file. ERROR_PATH_NOT_FOUNDģ (0x3) - The system cannot find the path specified. ERROR_FILE_NOT_FOUNDĢ (0x2) - The system cannot find the file specified. ERROR_INVALID_FUNCTIONġ (0x1) - Incorrect function. Codes ERROR_SUCCESSĠ (0x0) - The operation completed successfully. To retrieve the description text for the error in your application, use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag. They are returned by the GetLastError function when many functions fail.
The following list describes system error codes (errors 0 to 499). Sometimes the code is returned by a function deep in the stack and far removed from your code that is handling the error. Because these codes are defined in WinError.h for anyone to use, sometimes the codes are returned by non-system software. You need to note both the programmatic and the run-time context in which these errors occur. Use of these codes requires some amount of investigation and analysis. Consequently the descriptions of these codes cannot be very specific.
Each one can occur in one of many hundreds of locations in the system.