![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Windows Event Log fails to translate event description. Actually I want the events description not in XML but in text format. I was able to translate all the logs, say, Security, System and application; including the event description part in text format in VISTA Beta2. But the moment I installed the publicly released Windows VISTA Business, downloaded from MSDN subscriber downloads, I am getting all event properties like event id, source name, username, system name etc., but fails to get the event description which I used to get when using EvtFormatMessage function in old Vista Beta2. I am getting the error code 1815, which says, The specified resource language ID cannot be found in the image file. The code, which I used to get event description, is given below: In VISTA Beta2: EvtFormatMessage(hpublisherConfig, hEvent, NULL, dwPropertyCount, valArray, EvtFormatMessageEvent, dwBuffSize, wcBuf, &dwBuffUsed); In VISTA Release: As the same code which I was using in VISTA Beta was not working, I thought of replacing the third para of EvtFormatMessage, which is, DWORD MessageId, with publisher's message resource, instead of NULL as given above. But still its not working for me. Can you please shed some light into this problem. The new code, which I discussed, is given below: EvtGetPublisherMetadataProperty( hpublisherConfig, EvtPublisherMetadataPublisherMessageID, 0, bufferSize, metadataProperty, &bufferSize); EvtFormatMessage(hpublisherConfig, hEvent, (*metadataProperty).UInt32Val, dwPropertyCount, valArray, EvtFormatMessageEvent, dwBuffSize, wcBuf, &dwBuffUsed); |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| HELP need to solve this problem asap - Unable to start event viewer/event log service | Software | |||
| Boot up Issues - Critical Event Log errors - Event ID = 100, 200, 400, 307, 402 | General Discussion | |||
| MMC fails to load event viewer | Vista installation & setup | |||
| Insalling most programs now fails with Event ID 1000 | Vista installation & setup | |||
| Unable to fetch the Event Log - Event Description | Vista security | |||