Any function that I can call to get the windows error message when

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm using C# 2003, .net 2.0. I need to translate some error codes from
Security Log of the system in my application.
For example, I have an Windows error code of 3221225875 (C0000193). Its
message is "User logon with expired account". Is there a function I can call
to get the message when I have an error code? Thanks.
 
Hello Pucca,

Use WinAPI FormatMessage or Win32Exception methods.
See http://www.pinvoke.net/default.aspx/kernel32/FormatMessage.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top