Error Codes

The error codes are values that identify different types of errors in the Windows API. These can usually be obtained by using the GetLastError function. The following table lists various API error codes.

API Error Codes
Error CodeDefinition
0No error / Success
1Invalid Function
2File Not Found
3Path Not Found
4Cannot Open File -- Too Many Files Open
5Access Denied
6Invalid Handle
7Storage Control Blocks Destroyed
8Insufficient Memory
9Invalid Storage Control Block Address
10Invalid or Incorrect Environment
11Invalid Program Format Attempted to Load
12Invalid Access Code
13Invalid Data
14Insufficient Memory
15Invalid Drive Specified
16Directory Cannot Be Removed
17Cannot Move File to Different Drive
18No More Files
19Disk Write Protected
20Cannot Find Device
21Device Not Ready
22Device Command Unrecognized
23Cyclic Redundance Check (CRC) Data Error
24Incorrect Command Length
25Cannot Locate Area or Track on Disk
26Disk Cannot Be Accessed
27Cannot Find Requested Sector
28Printer Out of Paper
29Cannot Write to Specified Drive
30Cannot Read from Specified Drive
31Device Not Functioning
32Cannot Access File -- Already in Use
33Cannot Access File -- Locked
34Wrong Disk in Drive
36Too Many Files Being Shared
38End of File (EOF)
39Disk Full
50Unsupported Network Request
51Remote Computer Unavailable
52Duplicate Name on Network
53Network Path Not Found
54Network Busy
55Network Resource or Device Not Available
56Too Many Network BIOS Commands
57Network Adapter Error
58Specified Server Cannot Perform Requested Operation
59Unexpected Network Error
60Incompatible Remote Adapter
61Print Queue Full
62No Space on Server to Store Spooled File for Printing
63File to be Printed Deleted
64Specified Network Name Unavailable
65Network Access Denied
66Incorrect Network Resouce Type
67Network Name Not Found
68Too Many Names on Network
69Network BIOS Session Limit Exceeded
70Remote Server Paused or Being Started
71Unaccepted Network Request
72Specified Printer or Disk Paused
80File Exists
82Cannot Create Directory or File
83Failure on Interrupt 24 (INT 24)
84Insufficient Storage to Process Request
85Local Device Name Already in Use
86Invalid Network Password
87Invalid Parameter
88Network Write Fault Error
89Cannot Start Another Process Currently
100Cannot Create Another Semaphore -- Too Many Already
101Exclusive Semaphore Already Owned
102Semaphore Already Set and Cannot Be Closed
103Semaphore Cannot Be Set Again
104Cannot Request Exclusive Semaphore At Interrupt Time
105Semaphore Ownership Ended
106Insert Disk
107Alternate Disk Not Inserted
108Disk Locked or In Use
109Pipe Ended
110Cannot Open Specified Device or File
111File Name Too Long
112Insufficient Space on Disk
113No More Internal File Identifiers Available
114Invalid Target Internal File Identifier
117Invalid IOCTL Call
118Incorrect Verify-on-Write Switch Parameter
119Unsupported System Command
120Function Only Available Under Windows NT
121Semaphore Timeout Expired
122Insufficient Data Buffer
123Invalid File Name, Directory Name, Or Volume Label
124Invalid System Call Level
125No Volume Label on Disk
126Specified Module Not Found
127Specified Procedure Not Found
128No Child Processes to Wait For
129Application Cannot Run Under Windows NT
130File Handle to Open Disk Partition Not Used for I/O
131File Pointer Moved Before Beginning of File
132Cannot Set File Pointer on Specified Device or File
133Cannot Use JOIN or SUBST on Drive That Contains Previously Joined Drives
134Cannot Use JOIN or SUBST on Drive That Is Already Joined
135Cannot Use JOIN or SUBST on Drive That Is Already Substituted
136Cannot Delete JOIN of a Non-joined Drive
137Cannot Delete SUBST of a Non-substituted Drive
138Cannot Join Drive to Directory on a Joined Drive
139Cannot Substitute Drive to Directory on a Substituted Drive
140Cannot Join Drive to Directory on a Substituted Drive
141Cannot Substitute Drive to Directory on a Joined Drive
142Cannot JOIN or SUBST Currently -- Drive Busy
143Cannot JOIN or SUBST Drive to Directory on Same Drive
144Directory Not Subdirectory of Root Directory
145Directory Not Empty
146Specified Path is a Substitute
147Insufficient Resources to Join or Substitute
148Cannot Use Specified Path Currently -- Busy
149Cannot JOIN or SUBST Drive Whose Directory is Target of Another SUBST
150System Trace Not Specified or Not Allowed in CONFIG.SYS
151Incorrect Number of Specified Semaphore Events
152Too Many Semaphores Set
153List Incorrect
154Volume Label Too Long -- Truncated to 11 Characters
155Cannot Create Another Thread
156Recipient Process Refused Signal
157Segment Already Discarded and Cannot Be Locked
158Segment Already Unlocked
159Incorrect Thread ID Address
160Incorrect Argument String
161Specified Path Invalid
162Signal Is Already Pending
164No More Threads Can Be Created
167Unable to Lock File Region
170Requested Resource Busy
173Lock Request Not Outstanding for Supplied Cancel Region
174Atomic Changes to Lock Type Not Supported
180Invalid Segment Number
182Cannot Run Program -- Invalid Ordinal
183File Already Exists
186Incorrect Flag Passed
187Specified Semaphore Not Found
188Cannot Run Program -- Invalid Code Segment
189Cannot Run Program -- Invalid Stack Segment
190Cannot Run Program -- Invalid Module Type
191Cannot Run Program Under Windows NT
192Cannot Run Program -- Invalid EXE
193Invalid Windows NT Application
194Cannot Run Program -- Iterated Data Exceeds 64K
195Cannot Run Program -- Invalid Minimum Allocation Size
196Cannot Run Program -- Dynamic Link From Invalid Ring
197Operating System Not Configured To Run Application
198Cannot Run Program -- Invalid Segment DPL
199Cannot Run Program -- Automatic Data Segment Exceeds 64K
200Code Segment Must Be Less Than 64K
201Cannot Run Program -- Reallocation Chain Exceeds Segment Limit
202Cannot Run Program -- Infinite Loop In Reallocation Chain
203Environment Variable Not Found
205No Command Subtree Has Signal Handler
206Filename or Extension Too Long
207Ring 2 Stack Busy
208Too Many or Incorrectly Entered Wildcards in Filename
209Invalid Signal Posted
210Signal Handler Cannot Be Set
212Segment Locked and Cannot Be Reallocated
214Too Many Dynamic Link Modules Attached
215Cannot Nest Calls
230Invalid Pipe State
231All Pipes Busy
232Pipe Being Closed
233No Process on End of Pipe
234More Data Available
240Session Cancelled
254Specified Extended Attribute Name Invalid
255Inconsistent Extended Attributes
259No More Data Available
266Copy Cannot Be Used
267Invalid Directory Name
275Extended Attributes Did Not Fit into Buffer
276Corrupt Extended Attribute File
277Extended Attribute Table Full
278Invalid Specified Extended Attribute Handle
282Extended Attributes Not Supported By File System
288Attempt to Release Mutex Not Owned By Caller
298Too Many Posts to Semaphore
317Cannot Find Message in Message File
487Invalid Address
534Arithmetic Overflow (> 32 Bits)
535Process on End of Pipe
536Waiting for Process to Open on End of Pipe
994Access to Extended Attribute Denied
995Operation Aborted
996Overlapped I/O Not in Signalled State
997Overlapped I/O In Progress
998Invalid Access to Memory
999Inpage Error
1001Stack Overflow -- Recursion Too Deep
1002Invalid Message to Window
1003Cannot Complete Function
1004Invalid Flags
1005Unrecognized File System on Disk
1006Invalid File
1007Cannot Perform Operation in Full-Screen Mode
1008Token Does Not Exist
1009Corrupt Registry Database
1010Invalid Registry Key
1011Cannot Open Registry Key
1012Cannot Read Registry Key
1013Cannot Write to Registry Key
1014Successful Recovery of Registry
1015Registry Corrupt
1016Registry I/O Failed
1017Cannot Load File Not in Registry Format
1018Illegal Operation on Registry Key Pending Deletion
1019Cannot Allocate Required Space in Registry Log
1020Cannot Create Symbolic Link in Registry Key Having Subkeys or Values
1021Cannot Create Nonvolatile Subkey Under Volatile Parent Key
1022Need to Enumerate Files
1051Cannot Stop Service Other Services Are Dependent On
1052Invalid Control for Service
1053No Response to Start or Control Request
1054Cannot Create Thread for Service
1055Service Database Locked
1056Service Already Running
1057Invalid Account Name
1058Service Disabled and Cannot Be Started
1059Circular Service Dependency Specified
1060Service Does Not Exist
1061Service Cannot Accept Control Messages
1062Service Not Active
1063Service Cannot Connect to Controller
1064Exception While Handling Control Request
1065Database Does Not Exist
1066Service Error
1067Unexpected Process Termination
1068Dependency Failed to Start
1069Service Did Not Start -- Logon Failure
1070Service Hanging in Start-Pending State
1071Invalid Service Database Lock
1072Service Marked for Deletion
1073Service Already Exists
1074Service Running Under Last-Known-Good Configuration
1075Dependency Service Does Not Exist or Marked for Deletion
1076Boot Already Accepted as Last-Known-Good Control Set
1077No Attempts to Start Service
1078Duplicate Service Name or Service Display Name
1100Physical End of Tape Reached
1101Tape Access Reached Filemark
1102Beginning of Tape or Partition Encountered
1103Tape Access Reached End of File Set
1104No More Data on Tape
1105Cannot Partition Tape
1106Invalid Blocksize on Tape
1107Cannot Find Tape Partition Information
1108Cannot Lock Media Eject Mechanism
1109Cannot Unload Media
1110Media in Drive Changed
1111I/O Bus Reset
1112No Media in Drive
1113No Mapping for Unicode Character in Target Code
1114Dynamic Link Library (DLL) Initialization Failed
1115System Shutdown in Progress
1116No System Shutdown in Progress
1117I/O Device Error
1118No Serial Device Successfully Initialized
1119Requested Interrupt Request (IRQ) Busy
1120Serial I/O Operation Completed By Another Write to Port
1121Serial I/O Operation Completed By Timeout
1122No ID Address Mark Found on Floppy Disk
1123Mismatch Between Floppy Disk Sector ID and Controller Track Address
1124Unknown Floppy Disk Controller Error
1125Inconsistent Floppy Disk Controller Registers
1126Hard Disk Recalibration Failed
1127Hard Disk Operation Failed
1128Hard Disk Controller Reset Failed
1129Physical End of Tape Encountered
1130Insufficient Server Memory to Process Command
1131Possible Deadlock Detected
1132Improperly Aligned Base Address or File Offset

Used by: GetLastError
Back to the index.


Go to Paul Kuliniewicz's Home Page.
E-mail: rogue953@st-louis.crosswinds.net
This page is at http://skyscraper.fortunecity.com/transmission/45/api/other/errorcodes.html