PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?UHVjY2E=?=
Guest
Posts: n/a
 
      21st Dec 2006
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.
--
Thanks.
 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      21st Dec 2006
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


 
Reply With Quote
 
=?Utf-8?B?UHVjY2E=?=
Guest
Posts: n/a
 
      22nd Dec 2006
Thank you.
--
Thanks.


"Michael Nemtsev" wrote:

> 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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message #R6025 pure virtual function call URmySunshine Windows Vista General Discussion 1 12th Mar 2008 08:51 PM
Re: PLEASE HELP!!! Error DLL Function call crashed Jim Windows XP Help 0 17th Jan 2008 09:40 PM
Error Handling - Call another Function Jackson via AccessMonster.com Microsoft Access VBA Modules 1 28th Sep 2006 07:42 PM
message R6025 virtual function call Michael Microsoft Frontpage 8 23rd Oct 2005 07:25 AM
Remote Procedure Call (RPC) error message shuts down windows Larry Windows XP Internet Explorer 1 3rd Dec 2003 04:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:48 PM.