com.develop.jawin.win32
Class EventLog

java.lang.Object
  |
  +--com.develop.jawin.win32.EventLog
All Implemented Interfaces:
MarshalConstants

public class EventLog
extends java.lang.Object
implements MarshalConstants


Field Summary
private static FuncPtr fpCEL
           
private static FuncPtr fpDES
           
private static FuncPtr fpGNOELR
           
private static FuncPtr fpGOELR
           
private static FuncPtr fpOEL
           
private static FuncPtr fpRE
           
private static FuncPtr fpREL
           
private static FuncPtr fpRES
           
 
Fields inherited from interface com.develop.jawin.marshal.MarshalConstants
CHECK_HR, CHECK_NONE, CHECK_NULL, CHECK_W32, MARSHAL_GIT, MARSHAL_VPTR
 
Constructor Summary
EventLog()
           
 
Method Summary
(package private) static void ()
           
static int CloseEventLog(int handle)
           
static int DeregisterEventSource(int handle)
           
static int GetNumberOfEventLogRecords(int handle)
           
static int GetOldestEventLogRecord(int handle)
           
static int OpenEventLog(java.lang.String serverName, java.lang.String sourceName)
           
static byte[] RawReadEventLog(int handle, int flags, int offset)
           
static EVENTLOGRECORD ReadEventLog(int handle, int flags, int offset)
           
static int RegisterEventSource(java.lang.String serverName, java.lang.String sourceName)
           
static int ReportEvent(int log, int type, int category, int id, java.lang.String event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fpRES

private static final FuncPtr fpRES

fpDES

private static final FuncPtr fpDES

fpRE

private static final FuncPtr fpRE

fpCEL

private static final FuncPtr fpCEL

fpOEL

private static final FuncPtr fpOEL

fpGOELR

private static final FuncPtr fpGOELR

fpGNOELR

private static final FuncPtr fpGNOELR

fpREL

private static final FuncPtr fpREL
Constructor Detail

EventLog

public EventLog()
Method Detail

static void ()

RegisterEventSource

public static int RegisterEventSource(java.lang.String serverName,
                                      java.lang.String sourceName)
                               throws COMException,
                                      java.io.IOException

OpenEventLog

public static int OpenEventLog(java.lang.String serverName,
                               java.lang.String sourceName)
                        throws COMException,
                               java.io.IOException

DeregisterEventSource

public static int DeregisterEventSource(int handle)
                                 throws COMException,
                                        java.io.IOException

CloseEventLog

public static int CloseEventLog(int handle)
                         throws COMException,
                                java.io.IOException

GetOldestEventLogRecord

public static int GetOldestEventLogRecord(int handle)

GetNumberOfEventLogRecords

public static int GetNumberOfEventLogRecords(int handle)

ReportEvent

public static int ReportEvent(int log,
                              int type,
                              int category,
                              int id,
                              java.lang.String event)
                       throws COMException,
                              java.io.IOException

RawReadEventLog

public static byte[] RawReadEventLog(int handle,
                                     int flags,
                                     int offset)
                              throws java.io.IOException,
                                     COMException

ReadEventLog

public static EVENTLOGRECORD ReadEventLog(int handle,
                                          int flags,
                                          int offset)
                                   throws java.io.IOException,
                                          COMException


New Jawin designed by Vitally Shelest. This product includes software developed by the DevelopMentor OpenSource Project (http://www.develop.com/OpenSource).