com.jniwrapper.win32.hook
Class Hook.Descriptor

java.lang.Object
  extended bycom.jniwrapper.util.EnumItem
      extended bycom.jniwrapper.win32.hook.Hook.Descriptor
Enclosing class:
Hook

public static class Hook.Descriptor
extends com.jniwrapper.util.EnumItem

This class represents the enumeraton of available Windows hooks.


Field Summary
static Hook.Descriptor CALLWNDPROC
          Monitors messages before the system sends them to the destination window procedure.
static Hook.Descriptor CALLWNDPROCRET
          Monitors messages after they have been processed by the destination window procedure.
static Hook.Descriptor CBT
          Receives notifications useful to a computer-based training (CBT) application.
static Hook.Descriptor DEBUG
          Useful for debugging other hook procedures.
static Hook.Descriptor FOREGROUNDIDLE
          A hook procedure that will be called when the application's foreground thread is about to become idle.
static Hook.Descriptor GETMESSAGE
          Monitors messages posted to a message queue.
static Hook.Descriptor HARDWARE
           
static Hook.Descriptor JOURNALPLAYBACK
          Posts messages previously recorded by a JOURNALRECORD hook procedure.
static Hook.Descriptor JOURNALRECORD
          Records input messages posted to the system message queue.
static Hook.Descriptor KEYBOARD
          Monitors keystroke messages.
static Hook.Descriptor KEYBOARD_LL
          Monitors low-level keyboard input events.
static Hook.Descriptor MOUSE
          Monitors mouse messages.
static Hook.Descriptor MOUSE_LL
          Monitors low-level mouse input events.
static Hook.Descriptor SHELL
          Receives notifications useful to shell applications.
static Hook.Descriptor SYSMSGFILTER
          Monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar.
 
Method Summary
 java.lang.String getName()
          Returns the string descriptor.
 boolean isGlobalOnly()
          Returns true if the HookDescriptor, which is determinated by this item, is global only.
 
Methods inherited from class com.jniwrapper.util.EnumItem
equals, getLongValue, getValue, hashCode, isOneOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOURNALRECORD

public static final Hook.Descriptor JOURNALRECORD
Records input messages posted to the system message queue.


JOURNALPLAYBACK

public static final Hook.Descriptor JOURNALPLAYBACK
Posts messages previously recorded by a JOURNALRECORD hook procedure.


KEYBOARD

public static final Hook.Descriptor KEYBOARD
Monitors keystroke messages.


GETMESSAGE

public static final Hook.Descriptor GETMESSAGE
Monitors messages posted to a message queue.


CALLWNDPROC

public static final Hook.Descriptor CALLWNDPROC
Monitors messages before the system sends them to the destination window procedure.


CBT

public static final Hook.Descriptor CBT
Receives notifications useful to a computer-based training (CBT) application.


SYSMSGFILTER

public static final Hook.Descriptor SYSMSGFILTER
Monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar.


MOUSE

public static final Hook.Descriptor MOUSE
Monitors mouse messages.


HARDWARE

public static final Hook.Descriptor HARDWARE

DEBUG

public static final Hook.Descriptor DEBUG
Useful for debugging other hook procedures.


SHELL

public static final Hook.Descriptor SHELL
Receives notifications useful to shell applications.


FOREGROUNDIDLE

public static final Hook.Descriptor FOREGROUNDIDLE
A hook procedure that will be called when the application's foreground thread is about to become idle. This hook is useful for performing low priority tasks during idle time.


CALLWNDPROCRET

public static final Hook.Descriptor CALLWNDPROCRET
Monitors messages after they have been processed by the destination window procedure.


KEYBOARD_LL

public static final Hook.Descriptor KEYBOARD_LL
Monitors low-level keyboard input events. Available for WinNT systems only.


MOUSE_LL

public static final Hook.Descriptor MOUSE_LL
Monitors low-level mouse input events.

Method Detail

isGlobalOnly

public boolean isGlobalOnly()
Returns true if the HookDescriptor, which is determinated by this item, is global only.

Returns:
true if the HookDescriptor is global only.

getName

public java.lang.String getName()
Returns the string descriptor.

Returns:
the string descriptor.