Re: How can I trap an API call by windows?

From: Alf P. Steinbach (alfps_at_start.no)
Date: 12/17/03


Date: Wed, 17 Dec 2003 15:50:03 GMT

On 17 Dec 2003 07:41:00 -0800, ali_2082@yahoo.com (Ali Akbar) wrote:

> I just wanted to know how my program can trap a particular API
>call by windows.

That is probably not what you want, but it can be done by system-level
debugging support.

> (The idea is that I want to hook all the open text
>boxes and keep hooking new ones as and when they are created).

That is probably not what you want, either, but can be done by regular
Windows hooks. Which hook depends on what you mean by "all". Check
out the hook functions, but also: perhaps post here (and even better,
in comp.os.ms-windows.programming) what you really want to _achieve_.



Relevant Pages

  • Re: SysHook and STATUS_ACCESS_VIOLATION
    ... > Excuse me you claim Microsoft has a hooking library, ... Once you hook you can never unhook! ... > Don Burn (MVP, Windows DDK) ... >> So, before write so much STUPID, probably you have to listen my answer, ...
    (microsoft.public.development.device.drivers)
  • Re: Detect Application Launch
    ... > do it more elegantly via a hook if such a method were available. ... 'Register this form with Windows to receive the ShellHook message ... Private Declare Function RegisterShellHookWindow Lib "user32" (ByVal hwnd As ...
    (microsoft.public.vb.winapi)
  • Re: Hooks
    ... Now I have set the hook I am getting those messages. ... Gary Chanson (Windows SDK MVP) ... Is that thread id is possible for these concept (all child windows ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Hooks
    ... Gary Chanson (Windows SDK MVP) ... Which type hook I need to use for this? ... Is that thread id is possible for these concept (all child windows ...
    (microsoft.public.win32.programmer.gdi)
  • Re: MOUSEHOOKSTRUCTEX.mouseData contains garbage on Windows 7 64 bit on 32 bit application
    ... Lucky that Windows loader seems to ignore it. ... FILE HEADER VALUES ... 32 bit word machine ... I had utility which set global WH_MOUSE hook using SetWindowsHookEx. ...
    (microsoft.public.win32.programmer.ui)

Loading