V
Vineet Das
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
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