Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Security > Unable to fetch the Event Log - Event Description

Reply
Thread Tools Display Modes

Unable to fetch the Event Log - Event Description

 
 
Vineet Das
Guest
Posts: n/a

 
      08-17-2006
I am trying to enumerate the Events from the Event Logs. While fetching the
event description I am getting errors such as,

The description for Event ID ( 9002 ) in Source ( Desktop Window Manager )
cannot be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote computer.
You may be able to use the /AUXSOURCE= flag to retrieve this description;
see Help and Support for details. The following information is part of the
event: .

I am fetching the resource name from the "EventMessageFile" String value
under the particular source type under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application. I
then use the LoadLibraryEx API to load the library and then pass the
returned handle to FormatMessage API to retrieve the event description. The
FormatMessage API is returning 0 indicating a failure. This behaviour can be
reproduced using the native eventvwr.msc tool. I tried to test from win2k
sp4 and winxp sp2 machines. The behaviour is same for my code as well as the
native tool.

Any ideas why is this logic failing.

Thanks & Regards,
Vineet Kumar Das


 
Reply With Quote
 
 
 
 
Vineet Das
Guest
Posts: n/a

 
      08-21-2006
Does anybody have any updates on this? I checked out the new native
functions in the Windows Event Log SDK (EvtXXX functions).The Windows SDK
requires the following:

1.. One of the following operating systems: Windows Vista Beta 2, Windows
Server 2003 Service Pack 2, or Windows XP Professional Service Pack 2.
2.. Microsoft .NET Framework version 2.0.

Also, the EvtXXX functions has the following requirements,

1.. Client: Requires Windows "Longhorn".
2.. Server: Requires Windows Server "Longhorn".

Is there no way i can access the Windows Vista Event Log from my Windows
2000 machines.I even tried to get the required information using WMI. The
WMI reported data is better but still not complete. I could fetch the
message descriptions for some of the events but some had empty descriptions.

This is really urgent. Could anyone please help me on this?


"Vineet Das" <> wrote in message
news:...
>I am trying to enumerate the Events from the Event Logs. While fetching the
>event description I am getting errors such as,
>
> The description for Event ID ( 9002 ) in Source ( Desktop Window Manager )
> cannot be found. The local computer may not have the necessary registry
> information or message DLL files to display messages from a remote
> computer. You may be able to use the /AUXSOURCE= flag to retrieve this
> description; see Help and Support for details. The following information
> is part of the event: .
>
> I am fetching the resource name from the "EventMessageFile" String value
> under the particular source type under
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application.
> I then use the LoadLibraryEx API to load the library and then pass the
> returned handle to FormatMessage API to retrieve the event description.
> The FormatMessage API is returning 0 indicating a failure. This behaviour
> can be reproduced using the native eventvwr.msc tool. I tried to test from
> win2k sp4 and winxp sp2 machines. The behaviour is same for my code as
> well as the native tool.
>
> Any ideas why is this logic failing.
>
> Thanks & Regards,
> Vineet Kumar Das
>



 
Reply With Quote
 
Vineet Das
Guest
Posts: n/a

 
      08-23-2006
Hey Jimmy! I see you have answered some of the queries regarding Event Log
on Vista. Could you help me on this one.

"Vineet Das" <> wrote in message
news:ue82%...
> Does anybody have any updates on this? I checked out the new native
> functions in the Windows Event Log SDK (EvtXXX functions).The Windows SDK
> requires the following:
>
> 1.. One of the following operating systems: Windows Vista Beta 2, Windows
> Server 2003 Service Pack 2, or Windows XP Professional Service Pack 2.
> 2.. Microsoft .NET Framework version 2.0.
>
> Also, the EvtXXX functions has the following requirements,
>
> 1.. Client: Requires Windows "Longhorn".
> 2.. Server: Requires Windows Server "Longhorn".
>
> Is there no way i can access the Windows Vista Event Log from my Windows
> 2000 machines.I even tried to get the required information using WMI. The
> WMI reported data is better but still not complete. I could fetch the
> message descriptions for some of the events but some had empty
> descriptions.
>
> This is really urgent. Could anyone please help me on this?
>
>
> "Vineet Das" <> wrote in message
> news:...
>>I am trying to enumerate the Events from the Event Logs. While fetching
>>the event description I am getting errors such as,
>>
>> The description for Event ID ( 9002 ) in Source ( Desktop Window
>> Manager ) cannot be found. The local computer may not have the necessary
>> registry information or message DLL files to display messages from a
>> remote computer. You may be able to use the /AUXSOURCE= flag to retrieve
>> this description; see Help and Support for details. The following
>> information is part of the event: .
>>
>> I am fetching the resource name from the "EventMessageFile" String value
>> under the particular source type under
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application.
>> I then use the LoadLibraryEx API to load the library and then pass the
>> returned handle to FormatMessage API to retrieve the event description.
>> The FormatMessage API is returning 0 indicating a failure. This behaviour
>> can be reproduced using the native eventvwr.msc tool. I tried to test
>> from win2k sp4 and winxp sp2 machines. The behaviour is same for my code
>> as well as the native tool.
>>
>> Any ideas why is this logic failing.
>>
>> Thanks & Regards,
>> Vineet Kumar Das
>>

>
>



 
Reply With Quote
 
Jimmy Brush
Guest
Posts: n/a

 
      08-23-2006
Sorry, another user had a similar problem and I couldn't figure it out
either. The only information I found relating to the error was in the KB
article I posted about.

However, I did just yesterday find out that MS re-numbered the event log
ID's in Vista, and that these numbers are bigger than the old event log
could display. This seems to me like it might cause problems, but I don't
know for sure. I will see if I can get clarification.

Just out of curiosity ... are all the ID's that downlevel clients won't
display bigger than the ID's that it can?

- JB

Vista Support FAQ
http://www.jimmah.com/vista/

 
Reply With Quote
 
Vineet Das
Guest
Posts: n/a

 
      08-24-2006
Hi Jimmy,

Thanks for the reply. Which IDs are talking about? I am actually unable to
get description for all the events. The Event IDs are more or less the same
as used in downlevel clients. For example, The event id 1025.

I had read in some site that the Event Log architecture has changed. Is this
creating problems? I am using the simple SDK Event Logging Functions like,
OpenEventLog, CloseEventLog, ReadEventLog, etc for enumerating the Event on
the Vista Machine. This works fine. But the logic for fetching the
description is failing. As mentioned in the previous posts I am trying to
read the description from the EventMessageFile available through the
registry. I tried to look into the EventMessageFile resource directly using
a resource hacker tool. I could not find any message table (string table)
resource in that dll from where I am trying to fetch the format strings.
This is why the logic is failing.

So now, I am just curious as how Vista is storing the event descriptions.
For example, check out the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application\.NET
Runtime. In this you'll find a string value
EventMessageFile="C:\Windows\system32\mscoree.dll" . Ideally this dll should
have all the resource strings related to the events for the ".NET Runtime"
related events. But in Vista this does not have those resources.

Can you please confirm that Vista does not store the resource strings
anymore in the EventMessageFile? Also, it would be great if you let me know
how could I get these resource strings on Vista.

Thanks & Regards,
Vineet Kumar Das

"Jimmy Brush" <> wrote in message
news:650EAAA0-F5B3-40A2-A774-...
> Sorry, another user had a similar problem and I couldn't figure it out
> either. The only information I found relating to the error was in the KB
> article I posted about.
>
> However, I did just yesterday find out that MS re-numbered the event log
> ID's in Vista, and that these numbers are bigger than the old event log
> could display. This seems to me like it might cause problems, but I don't
> know for sure. I will see if I can get clarification.
>
> Just out of curiosity ... are all the ID's that downlevel clients won't
> display bigger than the ID's that it can?
>
> - JB
>
> Vista Support FAQ
> http://www.jimmah.com/vista/



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
unable to burn data disks, event id: 51 crotalotus Windows Vista General Discussion 1 04-04-2008 12:11 AM
Unable to access event log Darth Haxor Windows Vista Security 1 05-25-2007 08:36 PM
Unable to access Event Log Darth Haxor Windows Vista Security 3 05-24-2007 04:19 PM
Unable to create an Event Log entry joe Windows Vista Security 0 04-15-2007 05:08 AM
Event Log Event ID 18212 errors Jerry Witalka Windows Vista General Discussion 0 08-26-2006 08:13 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59