Link

Here's a simple script to export all Win32 Error Codes to a file. It works CONSISTENTLY across NT, 2K, XP and K3.

See this link for source code.