How to get EventID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baburk
    New Member
    • Oct 2006
    • 111

    How to get EventID

    Hi all,

    I am writing eventlog.

    In EventLog class having WriteEntry() to write eventlog into the Event Logs file.

    It contains some parameter.

    How to get the eventID, category, rawData for an exception

    eventID
    Type: System..::.Int3 2

    The application-specific identifier for the event.

    category
    Type: System..::.Int1 6

    The application-specific subcategory associated with the message.

    rawData
    Type: array< System..::.Byte >[]()[]

    An array of bytes that holds the binary data associated with the entry.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I believe there is an ENUM somewhere with this information, perhaps MSDN has some examples for it?

    Comment

    Working...