well, thats not a Bad Idea, but I want this to be done programatically, is there any way reading event viewer programatically?
I am not sure how you could do this programitcally but there should be a way to do it with languages such as c++, java, etc.
I have some more information regarding event viewer. All the event viewe entries are saved here:
All the application event logs messages DLLs are defined under the following registry keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\EventLog\ Application
All the system event logs messages DLLs are defined under the following registry keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\EventLog\ System
So, probably, you can instead of reading Event viewer file - .evt, you can read the registery programmitally. It could be easier maybe.
I am sure, registery could be accesses using programming language.
Regards
Qi