Prev: Hyperlink in an App with WinAPI
Next: Calling registerDragDrop (OLE API) function from VB.NET/C#.NET
From: Christian ASTOR on 3 Dec 2008 07:52 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) |