Hello Pucca,
Use WinAPI FormatMessage or Win32Exception methods.
See
http://www.pinvoke.net/default.aspx/...atMessage.html for more
info
P> Hi, I'm using C# 2003, .net 2.0. I need to translate some error
P> codes from Security Log of the system in my application. For
P> example, I have an Windows error code of 3221225875 (C0000193). Its
P> message is "User logon with expired account". Is there a function I
P> can call to get the message when I have an error code? Thanks.
P>
---
WBR,
Michael Nemtseva [C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo