Appendix C. Error Codes

Whenever you use theGetLastError function, you get error codes that do not have any meaning. The following table shows the first 10 such codes:

 The operation completed successfully. ERROR_SUCCESS 0 Incorrect function. ERROR_INVALID_FUNCTION 1 The system cannot find the file specified. ERROR_FILE_NOT_FOUND 2 The system cannot find the path specified. ERROR_PATH_NOT_FOUND 3 The system cannot open the file. ERROR_TOO_MANY_OPEN_FILES 4 Access is denied. ERROR_ACCESS_DENIED 5 The handle is invalid. ERROR_INVALID_HANDLE 6 The storage control blocks were destroyed. ERROR_ARENA_TRASHED 7 Not enough storage is available to process this command. ERROR_NOT_ENOUGH_MEMORY 8 The storage control block address is invalid. ERROR_INVALID_BLOCK ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.