com.sun.jna.platform.win32

## Class WinNT.EVENTLOGRECORD

- java.lang.Object
- - com.sun.jna.Structure
  - - com.sun.jna.platform.win32.WinNT.EVENTLOGRECORD

- Enclosing interface:
    WinNT

      public static class WinNT.EVENTLOGRECORD
      extends Structure

  The EVENTLOGRECORD structure contains information about an event record returned by the ReadEventLog function.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.sun.jna.Structure

      `Structure.ByReference, Structure.ByValue, Structure.StructField`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `WinDef.DWORD` | `ClosingRecordNumber` Reserved.
    `WinDef.DWORD` | `DataLength` Size of the event-specific data (at the position indicated by DataOffset), in bytes.
    `WinDef.DWORD` | `DataOffset` Offset of the event-specific information within this event log record, in bytes.
    `WinDef.WORD` | `EventCategory` Category for this event.
    `WinDef.DWORD` | `EventID` Event identifier.
    `WinDef.WORD` | `EventType` Type of event.
    `WinDef.DWORD` | `Length` Size of this event record, in bytes.
    `WinDef.WORD` | `NumStrings` Number of strings present in the log (at the position indicated by StringOffset).
    `WinDef.DWORD` | `RecordNumber` Record number of the record.
    `WinDef.DWORD` | `Reserved` Reserved.
    `WinDef.WORD` | `ReservedFlags` Reserved.
    `WinDef.DWORD` | `StringOffset` Offset of the description strings within this event log record.
    `WinDef.DWORD` | `TimeGenerated` Time at which this entry was submitted.
    `WinDef.DWORD` | `TimeWritten` Time at which this entry was received by the service to be written to the log.
    `WinDef.DWORD` | `UserSidLength` Size of the UserSid member, in bytes.
    `WinDef.DWORD` | `UserSidOffset` Offset of the security identifier (SID) within this event log record.

    - ### Fields inherited from class com.sun.jna.Structure

      `ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WinNT.EVENTLOGRECORD()`
    `WinNT.EVENTLOGRECORD(Pointer p)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected java.util.List` | `getFieldOrder()` Return this Structure's field names in their proper order.

    - ### Methods inherited from class com.sun.jna.Structure

      `allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### Length

          public WinDef.DWORD Length

      Size of this event record, in bytes. Note that this value is stored at both ends of the entry to ease moving forward or backward through the log. The length includes any pad bytes inserted at the end of the record for DWORD alignment.

    - #### Reserved

          public WinDef.DWORD Reserved

      Reserved.

    - #### RecordNumber

          public WinDef.DWORD RecordNumber

      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.

    - #### TimeGenerated

          public WinDef.DWORD TimeGenerated

      Time at which this entry was submitted. This time is measured in the number of seconds elapsed since 00:00:00 January 1, 1970, Universal Coordinated Time.

    - #### TimeWritten

          public WinDef.DWORD TimeWritten

      Time at which this entry was received by the service to be written to the log. This time is measured in the number of seconds elapsed since 00:00:00 January 1, 1970, Universal Coordinated Time.

    - #### EventID

          public WinDef.DWORD EventID

      Event identifier. The value is specific to the event source for the event, and is used with source name to locate a description string in the message file for the event source.

    - #### EventType

          public WinDef.WORD EventType

      Type of event.

    - #### NumStrings

          public WinDef.WORD NumStrings

      Number of strings present in the log (at the position indicated by StringOffset). These strings are merged into the message before it is displayed to the user.

    - #### EventCategory

          public WinDef.WORD EventCategory

      Category for this event. The meaning of this value depends on the event source.

    - #### ReservedFlags

          public WinDef.WORD ReservedFlags

      Reserved.

    - #### ClosingRecordNumber

          public WinDef.DWORD ClosingRecordNumber

      Reserved.

    - #### StringOffset

          public WinDef.DWORD StringOffset

      Offset of the description strings within this event log record.

    - #### UserSidLength

          public WinDef.DWORD UserSidLength

      Size of the UserSid member, in bytes. This value can be zero if no security identifier was provided.

    - #### UserSidOffset

          public WinDef.DWORD UserSidOffset

      Offset of the security identifier (SID) within this event log record. To obtain the user name for this SID, use the LookupAccountSid function.

    - #### DataLength

          public WinDef.DWORD DataLength

      Size of the event-specific data (at the position indicated by DataOffset), in bytes.

    - #### DataOffset

          public WinDef.DWORD DataOffset

      Offset of the event-specific information within this event log record, in bytes. This information could be something specific (a disk driver might log the number of retries, for example), followed by binary information specific to the event being logged and to the source that generated the entry.

  - ### Constructor Detail

    - #### WinNT.EVENTLOGRECORD

          public WinNT.EVENTLOGRECORD()

    - #### WinNT.EVENTLOGRECORD

          public WinNT.EVENTLOGRECORD(Pointer p)

  - ### Method Detail

    - #### getFieldOrder

          protected java.util.List getFieldOrder()

      Description copied from class: `Structure`
      Return this Structure's field names in their proper order. For example,

           protected List getFieldOrder() {
               return Arrays.asList(new String[] { ... });
           }

      IMPORTANT When deriving from an existing Structure subclass, ensure that you augment the list provided by the superclass, e.g.

           protected List getFieldOrder() {
               List fields = new ArrayList(super.getFieldOrder());
               fields.addAll(Arrays.asList(new String[] { ... }));
               return fields;
           }

      Field order must be explicitly indicated, since the field order as returned by `Class.getFields()` is not guaranteed to be predictable.
      Specified by:
        `getFieldOrder` in class `Structure`

Copyright © 2007-2013 Timothy Wall. All Rights Reserved.