Recent

Author Topic: [SOLVED] Handling any attempts to close dynamically allocated console window  (Read 2234 times)

440bx

  • Hero Member
  • *****
  • Posts: 4981
Note that very important in the case of hooking the console window is to register a hook callback using the WH_KEYBOARD_LL flag (value 13) instead of WH_KEYBOARD (value 2). Using the second one, the hook will not work — input will not be blocked.
Thanks again... rather easy to miss that it must be a low level hook.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018