From: Christian ASTOR on
Arif Ali Saiyed wrote:
> Hi there,
> I have set a hook on WNDPRROC....
> Where I am listening for Middle Click msg...... when middle click is
> done on any application's button in taskbar...
> I wanna Kill/close that application....

This works on XP : WH_GETMESSAGE, WindowFromPoint() to get the Toolbar
handle of the Taskbar, then TB_HITTEST + TB_GETBUTTONINFO (with
VirtualAllocEx()-WriteProcessMemory()) to get button info (like the
window title)