Click here to Skip to main content
12,635,246 members (23,930 online)
Click here to Skip to main content

Stats

797.6K views
40.4K downloads
430 bookmarked
Posted

Global System Hooks in .NET

, 9 Jan 2005 CPOL
A class library for using *global* system hooks in .NET.
SystemHooks
Documentation
Managed Hooks.chm
ManagedHooks.ndoc
External References
HarnessIt - [Home].url
UnitedBinary.UnitTests.Framework.TestBasis.dll
ManagedHooks
ManagedHooks.csproj.user
ManagedHooksTests
ManagedHooks Tests.htp
ManagedHooksTests.csproj.user
SampleHookingApp
App.ico
SampleHookingApp.csproj.user
Stable Reference
Kennedy.ManagedHooks.dll
SampleHookingApp.exe
SystemHookCore.dll
SystemHookCore
SystemHookCore.def
SystemHooksCompiledOnly
Kennedy.ManagedHooks.dll
Managed Hooks.chm
SampleHookingApp.exe
SystemHookCore.dll
// /////////////////////////////////////////////////////////////
// File: HookTypes.cs		Class: Kennedy.ManagedHooks.HookTypes
// Date: 2/25/2004			Author: Michael Kennedy
// Language: C#				Framework: .NET
//
// Copyright: Copyright (c) Michael Kennedy, 2004-2005
// /////////////////////////////////////////////////////////////
// License: See License.txt file included with application.
// Description: See compiled documentation (Managed Hooks.chm)
// /////////////////////////////////////////////////////////////

using System;

namespace Kennedy.ManagedHooks
{
	/// <include file='ManagedHooks.xml' path='Docs/HookTypes/enum/*'/>
	public enum HookTypes
	{
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		None		= -100,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		Keyboard	= 2,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		Mouse		= 7,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		Hardware	= 8,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		Shell		= 10,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		KeyboardLL	= 13,
		/// <include file='ManagedHooks.xml' path='Docs/General/Empty/*'/>
		MouseLL		= 14
	};
}

//
// The following hooks seem to result in serious errors
// when installing them in the current implementation of this
// library. Please, only add them back *at your own risk*. 
// Remember the Dr. Suess quote from the article...
//

//JournalRecord			= 0,
//JournalPlayback		= 1,
//GetMessage			= 3,
//CallWindowProcedure	= 4,
//ComputerBasedTraining	= 5,
//SystemMessageFilter	= 6,
//Debug					= 9,
//ForegroundIdle		= 11,
//CallWindowProret		= 12,

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Michael Kennedy
Instructor / Trainer DevelopMentor
United States United States
Michael Kennedy is a founding partner and software engineer at United Binary, LLC (http://www.unitedbinary.com [^]) and he is active in the agile software development community. Michael has been developing software for over 10 years. The last 4 of those years have been solidly focused on .NET development. For more information, please visit his website http://www.michaelckennedy.net [^]

In a previous life, Michael was pursuing a fairly successful career in mathematics before he saw the True Light and chose The Way of Programming.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 10 Jan 2005
Article Copyright 2004 by Michael Kennedy
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid