HookThis-dll

Disclaimer

NO WARRANTIES FOR THIS FILE TO WORK!
James Dickson disclaims all problems there might be with this file. If
you do not now how to use it without getting problems do not use this file.
------------------------------------------------------------------------------

for any questions mail:

james_dickson_@hotmail.com

---------------------------

hookthis.dll contains a function for the SystemWide - (WH_KEYBOARD) Windows-hook.

when you fired up the function you get a WM_CHAR- message  for every
key pressed (any valid ASCII-key  ([ENTER] + [BACKSPACE] sends a WM_KEYDOWN - message))
anywhere in Windows.


for use in C/C++ (declarations):

#define EXPORT extern "C" __declspec (dllexport)

EXPORT void HookThis(HWND hWnd, BOOL h);

Compile with hookthis.lib


You call the "setting systemwide keyboard hook" function in C/C++:

HookThis(hwnd, 1);

It is very important that you "unset" the hook (otherwise apps might crash)
when you close your application (or whenever just do it at least once if you have once
set the hook)
So the "unset windows-hook funtion" looks like this:

HookThis(hwnd, 0);


----------------------------------
This dll is totally FREEWARE.
You can even ask me nicelly for the sourcecode.

HAVE fun

CopyRight James Dickson 1999

