flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitshifter 30 Jun 2010, 01:16
I just found some old hooking examples i wrote in Cpp years ago.
Recently i have been porting them to FASM for fun. Here is the first example, global keyboard hooking. It is a library only (no interface) so do as you wish with it. Upon request i can supply sample interface (if ok with moderators) Useage: Create win32 GUI application. Import the library: KBL.DLL and function: SetKeyboardHook Create main window and supply a user defined message handler. Call SetKeyboardHook with handle of window to be notified and message id. Any keystrokes will then be passed to the windows message procedure. The wParam contains the virtual key code. The lParam contains the flags. See MSDN KeyboardProc for more details. Have fun ![]() PS: Please report any mistakes or errors (i did test it on xp2)
_________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||||||||||
![]() |
|
bitshifter 30 Jun 2010, 01:44
Yep, thanks for adding that.
Note that it must be global with static (shared) data. revolution wrote:
Good question, i will try, but i think no problem... _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||
![]() |
|
bitshifter 30 Jun 2010, 02:22
Ok, i tried it in guest account and it works perfectly.
I modified MINIPAD example to use as interface. If its ok with mods, i will share it to ease the pain... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.