Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Unable to fetch the Event Log - Event Description

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 08-17-2006   #1 (permalink)
Vineet Das
Guest


 

Unable to fetch the Event Log - Event Description

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



My System SpecsSystem Spec
Old 08-21-2006   #2 (permalink)
Vineet Das
Guest


 

Re: Unable to fetch the Event Log - Event Description

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" <vineet_das@hotmail.com> wrote in message
news:OHjK5RfwGHA.4408@TK2MSFTNGP02.phx.gbl...
>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\Services\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
>



My System SpecsSystem Spec
Old 08-22-2006   #3 (permalink)
Vineet Das
Guest


 

Re: Unable to fetch the Event Log - Event Description

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" <vineet_das@hotmail.com> wrote in message
news:ue82%23JTxGHA.5044@TK2MSFTNGP05.phx.gbl...
> 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" <vineet_das@hotmail.com> wrote in message
> news:OHjK5RfwGHA.4408@TK2MSFTNGP02.phx.gbl...
>>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\Services\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
>>

>
>



My System SpecsSystem Spec
Old 08-23-2006   #4 (permalink)
Jimmy Brush
Guest


 

Re: Unable to fetch the Event Log - Event Description

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/

My System SpecsSystem Spec
Old 08-24-2006   #5 (permalink)
Vineet Das
Guest


 

Re: Unable to fetch the Event Log - Event Description

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\Services\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" <JimmyBrush@discussions.microsoft.com> wrote in message
news:650EAAA0-F5B3-40A2-A774-3A323007AAAC@microsoft.com...
> 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/



My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access event log Darth Haxor Vista security 1 05-25-2007 02:36 PM
Unable to access Event Log Darth Haxor Vista security 3 05-24-2007 10:19 AM
WMI event - Failed to start event Pav PowerShell 3 05-09-2007 06:48 PM
Unable to create an Event Log entry joe Vista security 0 04-14-2007 11:08 PM
Windows Event Log fails to translate event description. Deepak Jha Vista General 0 12-15-2006 06:30 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

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