Windows CE Networking Team WebLog

Windows CE Networking - from NDIS to TCP to SOAP to VOIP and everything in between.

Looking up Win32 Error Codes

Yesterday two new developers came into my office and wanted to know what some weird Win32 error code mapped to.  I tried to get them to turn their heads as I looked it up because I didn't want them to know how easy this was. 

I just used err.exe, which lets you specify a Win32 error on the command prompt and returns what the error code is.  It's available at:

http://www.microsoft.com/downloads/details.aspx?FamilyId=BE596899-7BB8-4208-B7FC-09E02A13696C&displaylang=en

Unfortunately now no one will be impressed when I can tell them their hard to find error code is in the future :(.

[Author: John Spaith]

Published Friday, July 29, 2005 9:38 AM by cenet
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

anon said:

I think you can do something similiar with:
net helpmsg <number>
July 29, 2005 1:26 PM
 

john said:

From cmd.exe:
net helpmsg <errorcode>
July 29, 2005 4:37 PM
 

Me said:

How does it compare with 'net helpmsg'.

For example:
C:\Temp\err\Err>net helpmsg 10035

A non-blocking socket operation could not be completed immediately.




Your suggestion:
C:\Temp\err\Err>err 10035
# for decimal 10035 / hex 0x2733 :
SQL_10035_severity_16 sql_err
# No value was given for one or more of the required
# parameters.
WSAEWOULDBLOCK winerror.h
# A non-blocking socket operation could not be completed
# immediately.
WSAEWOULDBLOCK winsock2.h
# 3 matches found for "10035"
August 1, 2005 1:00 PM
 

peter said:

Thank you, it was useful, I was totally fed up with having to hunt for the error constant name. This saves me from using magic numbers even when I have to hurry with coding.

April 11, 2007 12:06 PM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker