Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'roll': 0.07; 'mapped': 0.09; 'url:%28': 0.09; 'url:%29': 0.09; 'url:msdn': 0.09; 'pm,': 0.10; 'subject:error': 0.11; 'win32': 0.12; 'wrote:': 0.14; '(2003)': 0.16; 'crop': 0.16; 'helpful,': 0.16; 'sdk': 0.16; 'url:85)': 0.16; 'windowserror': 0.16; 'holds': 0.16; 'thanks!': 0.16; 'header:In-Reply-To:1': 0.21; "wasn't": 0.22; 'received:209.85.210.174': 0.23; 'received:mail- iy0-f174.google.com': 0.23; 'code': 0.24; '(e.g.': 0.26; 'subject:List': 0.26; 'matches': 0.29; 'version': 0.29; 'code,': 0.29; 'url:library': 0.31; 'andrew': 0.32; 'components': 0.32; 'to:addr:python-list': 0.33; 'list': 0.33; 'actually': 0.33; 'error': 0.33; 'example,': 0.35; 'header:User-Agent:1': 0.35; 'skip:" 10': 0.35; 'message-id:@gmail.com': 0.36; 'platform': 0.36; 'probably': 0.36; 'received:google.com': 0.37; 'something': 0.37; 'received:209.85': 0.37; 'assuming': 0.37; 'but': 0.38; 'linked': 0.38; 'somewhat': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'really': 0.40; 'received:192.168.1': 0.40; 'more': 0.60; 'best': 0.60; 'harder': 0.65; 'below,': 0.65; 'present.': 0.67; 'url:%1': 0.68; 'url:en-us': 0.68; 'means?': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=8RvDKBSFlcFBGrnzXWt0FcHI15HpBsNkm/OJwuliVKs=; b=IckM8vAxUvxu+77npZgXUBLZNtr/9s7fFDexKIaPp7K9S38kiRxzF0MAdRScdM1zE7 z6PBTHDD+A4keHI9RW3rIZLMYGJUcW4u0RAJgiC1HOsUVBv2Vq4MyfAtGpLaf3oq8PYV TMnW4TdieQT0tLQOIGehmpwGe/Tgu/UWdrR+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ZKfvGCFJwnQUru/lK9nBtA9YAHKHW48ROgj2jUNTjM9mw4MzFgpf+FSrrhrB6xrRiY 0Gs+0lMyAehjAXx9hAT8i9v7jV23Tr02SQxXZy+HROmCiZyeFWH1lztp3MpxMCY14HgL JLGejTlJrlTM70JJLCuiMJEhR5+BGSRh4g5Vw= Date: Fri, 20 May 2011 16:55:01 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: python-list@python.org Subject: Re: List of WindowsError error codes and meanings References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1305928508 news.xs4all.nl 49046 [::ffff:82.94.164.166]:54532 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:5884 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!