Package com.sun.jna.platform.win32
Class Advapi32Util.EventLogRecord
java.lang.Object
com.sun.jna.platform.win32.Advapi32Util.EventLogRecord
- Enclosing class:
- Advapi32Util
An event log record.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]getData()Raw data associated with the record.intDeprecated.intThe Instance ID, a resource identifier that corresponds to a string definition in the message resource file of the event source.intRecord length, with data.Raw record data.intRecord number of the record.Event source.intStatus code, the rightmost 16 bits of the Instance ID.String[]Strings associated with this event.getType()Event log type.
- 
Constructor Details- 
EventLogRecord
 
- 
- 
Method Details- 
getRecordRaw record data.- Returns:
- EVENTLOGRECORD.
 
- 
getInstanceIdpublic int getInstanceId()The Instance ID, a resource identifier that corresponds to a string definition in the message resource file of the event source. The Event ID is the Instance ID with the top two bits masked off.- Returns:
- An integer representing the 32-bit Instance ID.
 
- 
getEventIdDeprecated.As of 5.4.0, replaced bygetInstanceId(). The Event ID displayed in the Windows Event Viewer corresponds togetStatusCode()for system-generated events.
- 
getSourceEvent source.- Returns:
- String.
 
- 
getStatusCodepublic int getStatusCode()Status code, the rightmost 16 bits of the Instance ID. Corresponds to the Event ID field in the Windows Event Viewer for system-generated events.- Returns:
- An integer representing the low 16-bits of the Instance ID.
 
- 
getRecordNumberpublic int getRecordNumber()Record number of the record. This value can be used with the EVENTLOG_SEEK_READ flag in the ReadEventLog function to begin reading at a specified record.- Returns:
- Integer.
 
- 
getLengthpublic int getLength()Record length, with data.- Returns:
- Number of bytes in the record including data.
 
- 
getStringsStrings associated with this event.- Returns:
- Array of strings or null.
 
- 
getTypeEvent log type.- Returns:
- Event log type.
 
- 
getDatapublic byte[] getData()Raw data associated with the record.- Returns:
- Array of bytes or null.
 
 
- 
getInstanceId().