Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

HookType (Enums)
 
.
Summary

C# Definition:

public enum HookType : int
{
     WH_JOURNALRECORD = 0,  //Installs a hook procedure that records input messages posted to the system message queue. This hook is useful for recording macros.
     WH_JOURNALPLAYBACK = 1, //Installs a hook procedure that posts messages previously recorded by a WH_JOURNALRECORD hook procedure.
     WH_KEYBOARD = 2,    //Installs a hook procedure that monitors keystroke messages.
     WH_GETMESSAGE = 3,     //Installs a hook procedure that monitors messages posted to a message queue.
     WH_CALLWNDPROC = 4,    //Installs a hook procedure that monitors messages before the system sends them to the destination window procedure.
     WH_CBT = 5,        //Installs a hook procedure that receives notifications useful to a CBT application.
     WH_SYSMSGFILTER = 6,   /*Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or    
                scroll bar. The hook procedure monitors these messages for all applications in the same desktop as the calling thread.*/
     WH_MOUSE = 7,      //Installs a hook procedure that monitors mouse messages.
     WH_HARDWARE = 8,      
     WH_DEBUG = 9,      //Installs a hook procedure useful for debugging other hook procedures.
     WH_SHELL = 10,     //Installs a hook procedure that receives notifications useful to shell applications.
     WH_FOREGROUNDIDLE = 11, //Installs a hook procedure that will be called when the application's foreground thread is about to become idle.
     WH_CALLWNDPROCRET = 12, //Installs a hook procedure that monitors messages after they have been processed by the destination window procedure.
     WH_KEYBOARD_LL = 13,    //Installs a hook procedure that monitors low-level keyboard input events.
     WH_MOUSE_LL = 14    //Installs a hook procedure that monitors low-level mouse input events.
}

VB Definition:

Enum HookType as Integer
     WH_JOURNALRECORD = 0
     WH_JOURNALPLAYBACK = 1
     WH_KEYBOARD = 2
     WH_GETMESSAGE = 3
     WH_CALLWNDPROC = 4
     WH_CBT = 5
     WH_SYSMSGFILTER = 6
     WH_MOUSE = 7
     WH_HARDWARE = 8
     WH_DEBUG = 9
     WH_SHELL = 10
     WH_FOREGROUNDIDLE = 11
     WH_CALLWNDPROCRET = 12
     WH_KEYBOARD_LL = 13
     WH_MOUSE_LL = 14
End Enum

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
SetWindowsHookEx related documentation on MSDN
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions