com.jniwrapper.win32.hook
Class JournalRecordEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jniwrapper.win32.hook.HookEventObject
          extended by com.jniwrapper.win32.hook.JournalRecordEvent
All Implemented Interfaces:
java.io.Serializable

public class JournalRecordEvent
extends HookEventObject

This class describes events of the Hook.Descriptor.JOURNALRECORD hook. This event contains a message to be recorded.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JournalRecordEvent(java.lang.Object source, long code)
          Creates instance of the JournalRecordEvent that contains information about a hardware message sent to the system message queue.
JournalRecordEvent(java.lang.Object source, long code, long message, long paramL, long paramH, long time, Wnd wnd)
          Creates instance of the JournalRecordEvent that contains full information about a hardware message sent to the system message queue.
 
Method Summary
 long getCode()
          Returns value that specifies how to process the message.
 long getMessage()
          Returns the message.
 long getParamH()
          Returns value that specifies additional information about the message.
 long getParamL()
          Returns value that specifies additional information about the message.
 long getTime()
          Returns the time at which the message was posted.
 Wnd getWnd()
          Returns handle to the window to which the message was posted.
 boolean isAction()
          Returns value that indicates that the hook procedure must record the contents of this instance by copying them to a buffer or file.
 boolean isSystemModalDialogDestroyed()
          Returns value that indicates that a system-modal dialog box has been destroyed.
 boolean isSystemModalDialogDisplayed()
          Returns value that indicates that a system-modal dialog box is being displayed.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JournalRecordEvent

public JournalRecordEvent(java.lang.Object source,
                          long code)
Creates instance of the JournalRecordEvent that contains information about a hardware message sent to the system message queue.

Parameters:
source - The object on which the event initially occurred.
code - Value that specifies how to process the message.

JournalRecordEvent

public JournalRecordEvent(java.lang.Object source,
                          long code,
                          long message,
                          long paramL,
                          long paramH,
                          long time,
                          Wnd wnd)
Creates instance of the JournalRecordEvent that contains full information about a hardware message sent to the system message queue.

Parameters:
source - The object on which the event initially occurred.
code - Value that specifies how to process the message.
message - Value that specifies the message.
paramL - Value that specifies additional information about the message. The exact meaning depends on the message value.
paramH - Value that specifies additional information about the message. The exact meaning depends on the message value.
time - Value that specifies the time at which the message was posted.
wnd - Handle to the window to which the message was posted.
Method Detail

getCode

public long getCode()
Returns value that specifies how to process the message.

Returns:
Value that specifies how to process the message.

isAction

public boolean isAction()
Returns value that indicates that the hook procedure must record the contents of this instance by copying them to a buffer or file.

Returns:
true if the hook procedure must record the contents of this instance by copying them to a buffer or file. Otherwise false.

isSystemModalDialogDestroyed

public boolean isSystemModalDialogDestroyed()
Returns value that indicates that a system-modal dialog box has been destroyed. The hook procedure must resume recording.

Returns:
true if a system-modal dialog box has been destroyed. Otherwise false.

isSystemModalDialogDisplayed

public boolean isSystemModalDialogDisplayed()
Returns value that indicates that a system-modal dialog box is being displayed. Until the dialog box is destroyed, the hook procedure must stop recording.

Returns:
true if the system-modal dialog box is being displayed. Otherwise false.

getMessage

public long getMessage()
Returns the message.

Returns:
The message.

getParamL

public long getParamL()
Returns value that specifies additional information about the message.

Returns:
Value that specifies additional information about the message.

getParamH

public long getParamH()
Returns value that specifies additional information about the message.

Returns:
Value that specifies additional information about the message.

getTime

public long getTime()
Returns the time at which the message was posted.

Returns:
The time at which the message was posted.

getWnd

public Wnd getWnd()
Returns handle to the window to which the message was posted.

Returns:
Handle to the window to which the message was posted.