Click here to Skip to main content
15,895,797 members
Articles / Programming Languages / C++

Mouse and KeyBoard Hooking utility with VC++

Rate me:
Please Sign up or sign in to vote.
4.93/5 (38 votes)
21 Mar 2010CPL4 min read 182.8K   27.1K   146  
Test Automation software's code revealed with the help of mouse and keyboard hooking!!!
#ifndef _KEYBOARD_EVENT_H_
#define _KEYBOARD_EVENT_H_
#if _MSC_VER > 1000
#pragma once
#endif
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#define LIBSPEC __declspec(dllexport)

   LIBSPEC BOOL InstallKeyBoardHook(HWND hWndParent);
   LIBSPEC BOOL UnInstallKeyBoardHook(HWND hWndParent);
#undef LIBSPEC

   #define UWM_KEYBOARD_MSG ("UWM_KEYBOARD_USER_MSG")
#ifdef __cplusplus
}
#endif // __cplusplus

#endif // _KEYBOARD_EVENT_H_

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 Common Public License Version 1.0 (CPL)


Written By
Software Developer (Senior) Philips HealthCare
India India
I am always looking for new technical challenges.
If you face it, contact me, I will solve it.

Comments and Discussions