Re: Generate NT Events
- From: ipramod@xxxxxxxxx
- Date: 27 Dec 2006 22:43:47 -0800
Hi Pavel,
As you said, each application will have its event message file
installed and the location for that is specified in the below registry
location.
As I can see if I have SQL Server application installed on my machine
then there is an entry in the registry which specifies that the Nt
event message info is present in sqlevn70.rll file.
So, how can I retrieve values from this file?
Thanks,
Regards,
Pramod
ipramod@xxxxxxxxx wrote:
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: Pavel A.
- Re: Generate NT Events
- References:
- Generate NT Events
- From: ipramod
- Re: Generate NT Events
- From: ipramod
- Generate NT Events
- Prev by Date: Re: Newbie question (NtRaiseHardError)
- Next by Date: Re: How to relay debuggee into kernel debugger like SI
- Previous by thread: Re: Generate NT Events
- Next by thread: Re: Generate NT Events
- Index(es):
Relevant Pages
|
|