Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. event log doubt

event log doubt

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashokvishnu
    wrote on last edited by
    #1

    Hi Gurus, I log an event with event type as 0 ( EVENTLOG_SUCCESS ). In event viewer the event has the Information icon. But when I open the properties window for the event, the Type is displayed as None. Why? Thanks

    C++beginer

    K H 2 Replies Last reply
    0
    • A ashokvishnu

      Hi Gurus, I log an event with event type as 0 ( EVENTLOG_SUCCESS ). In event viewer the event has the Information icon. But when I open the properties window for the event, the Type is displayed as None. Why? Thanks

      C++beginer

      K Offline
      K Offline
      kakan
      wrote on last edited by
      #2

      Logging to the event log isn't easy, especially if you want to follow the rules and get a nice looking log. I suggest you search for articles (here on CP) on the subject.

      Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

      1 Reply Last reply
      0
      • A ashokvishnu

        Hi Gurus, I log an event with event type as 0 ( EVENTLOG_SUCCESS ). In event viewer the event has the Information icon. But when I open the properties window for the event, the Type is displayed as None. Why? Thanks

        C++beginer

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See here[^] maybe it is some helpful to you

        _**


        **_

        WhiteSky


        A 1 Reply Last reply
        0
        • H Hamid Taebi

          See here[^] maybe it is some helpful to you

          _**


          **_

          WhiteSky


          A Offline
          A Offline
          ashokvishnu
          wrote on last edited by
          #4

          I have gone through these articles. In winnt.h the event types are given as #define EVENTLOG_SUCCESS 0X0000 #define EVENTLOG_ERROR_TYPE 0x0001 #define EVENTLOG_WARNING_TYPE 0x0002 #define EVENTLOG_INFORMATION_TYPE 0x0004 #define EVENTLOG_AUDIT_SUCCESS 0x0008 #define EVENTLOG_AUDIT_FAILURE 0x0010 Still if I log an event with event type value as zero, Success is not shown as the type in EventViewer. Thats what I do not understand.

          C++beginer

          H 1 Reply Last reply
          0
          • A ashokvishnu

            I have gone through these articles. In winnt.h the event types are given as #define EVENTLOG_SUCCESS 0X0000 #define EVENTLOG_ERROR_TYPE 0x0001 #define EVENTLOG_WARNING_TYPE 0x0002 #define EVENTLOG_INFORMATION_TYPE 0x0004 #define EVENTLOG_AUDIT_SUCCESS 0x0008 #define EVENTLOG_AUDIT_FAILURE 0x0010 Still if I log an event with event type value as zero, Success is not shown as the type in EventViewer. Thats what I do not understand.

            C++beginer

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            It seems Event Logging in Windows[^]is helpful for you

            _**


            **_

            WhiteSky


            A 1 Reply Last reply
            0
            • H Hamid Taebi

              It seems Event Logging in Windows[^]is helpful for you

              _**


              **_

              WhiteSky


              A Offline
              A Offline
              ashokvishnu
              wrote on last edited by
              #6

              It seems only error, information, warning, audit_success and audit_failure can be used as event types for logging. They what is the purpose of EVENTLOG_SUCCESS in winnt.h?

              C++beginer

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups