ReadEventLog problem on Windows 7 RRS feed

  • Question

  • I have an application that calls ReadEventLog(). It works fine on Windows XP and 2003 server, but not on Windows 7 or 2008. I must continue supporting the older versions of windows in addition to the newer, so I can't move to the newer Event Log APIs.

    The problem is that in some cases NumStrings is 0 even though there are strings in the event. An example is when I start or stop the telnet server, an event goes into the application log from the telnet server and in the system log from the service controller. ReadEventLog gives me the right data from the system log, but gives me no strings from the application log. GetEventLog returns the event, but NumStrings is 0.

    I'm not sure that this is the best forum for this question. If someone could point me to better forums, that would also be appreciated.

    Thursday, March 25, 2010 4:58 PM

All replies

  • Reading a log file should not cause any permissions , however could you try to run this application as administrator and try?


    C# Fan! ananda84(at)gmail(dot)com
    Monday, May 10, 2010 11:05 AM