Re: Generate NT Events
- From: ipramod@xxxxxxxxx
- Date: 27 Dec 2006 09:49:09 -0800
Great. Sounds good... I'll take a look...
Thanks for reply.
I'll let you know if I face any problem.
-Pramod
Pavel A. wrote:
"ipramod@xxxxxxxxx" wrote:
Hi,
I want to generate NT Events on local machine for a particular
application. For that I need to get all the NT Event error numbers and
then using that I want to generate those events and retrieve the error
descriptions for the NT Events. The error description should come from
the system as I am not aware of the error description for a particular
event number.
In short, I need to create an application which will retrieve all the
NT Event numbers for an application (say Exchange Server, SQL Server
etc.) and then generate the NT Events explicitly and retrieve the
generated error description from the system.
Is this possible?
Thanks in advance,
Regards,
Pramod
Apps register their eventlog messages by adding name of their
message resource DLLs in
HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\<category>\<appname>
The message DLLs (or other PE format files) contain a message table resource,
which had been compiled from a .mc source file.
So you can scan all these files and retrieve message numbers and strings
for all apps interesting to you.
Messages for the core OS are in few DLLs located in %systemroot%\system32:
ntdll.dll, netevent.dll, netmsg.dll, iologmsg.dll, and other *msg.dll
These DLLs always are installed and everybody can use messages contained
there.
Good luck,
--PA
.
- Follow-Ups:
- Re: Generate NT Events
- From: ipramod
- Re: Generate NT Events
- References:
- Generate NT Events
- From: ipramod
- Generate NT Events
- Prev by Date: Re: How to relay debuggee into kernel debugger like SI
- Next by Date: Re: Process ID continualy increasing
- Previous by thread: Generate NT Events
- Next by thread: Re: Generate NT Events
- Index(es):
Relevant Pages
|
Loading