List of WindowsError error codes and meanings

Andrew Berg bahamutzero8825 at gmail.com
Fri May 20 17:55:01 EDT 2011


On 2011.05.20 02:47 PM, Genstein wrote:
> On 20/05/2011 18:56, Andrew Berg wrote:
> > This is probably somewhat off-topic, but where would I find a list of
> > what each error code in WindowsError means?
>
> Assuming it's a Win32 error code, winerror.h from the Platform SDK holds 
> the answer. One version is linked below, it's in theory out of date 
> (2003) but all the best known codes are present.
>
> http://msdn.microsoft.com/en-us/library/ms819773.aspx
> http://msdn.microsoft.com/en-us/library/ms819775.aspx
>
> For example, "WindowsError [error 5] Access is denied" matches 
> ERROR_ACCESS_DENIED (5L).
I wasn't really sure if/how the codes in a WindowsError message mapped
to something I would find on MSDN. That's really helpful, and I actually
was able to find something more up-to-date:
http://msdn.microsoft.com/en-us/library/ms681381%28v=VS.85%29.aspx
> HRESULTS may also crop up (e.g. E_FAIL, 0x80040005) which are harder to 
> list exhaustively since subsystems and COM components may roll their own 
> codes of various sorts; but common ones are present in winerror.h.
That's good to know. Thanks!



More information about the Python-list mailing list