There are many error messages in a Windows System. Actually a MSDN article describes them – or better: part of them. However they weren’t enough for me, so I decided to get all of them.
FormatMessage is the way to convert between the error number and the error text. So why do not simply go from zero to 4294967295 (high(Cardinal)) and convert all these possible error numbers to an error text by using FormatMessage? I did. And you know what? It works. I got all the possible error numbers in only 6 hours and 33 minutes.
Here you can download the code tables (retrieved from a Windows Vista)
Use them for your joy. However I cannot grant any guarantee for correctness, completeness or anything else. It is even possible that error codes and messages are going to change in future. This data comes straight from a Vista system and is not altered in any way but only for formating purposes.