RE: [GD-Windows] Hijacking application
Brought to you by:
vexxed72
From: Mike B. <mi...@wi...> - 2003-08-20 04:11:41
|
Or you could do some binary instrumentation and hook in that way (no pun intended ;)) http://research.microsoft.com/sn/detours/ "Detours is a library for instrumenting arbitrary Win32 functions on x86 machines. Detours intercepts Win32 functions by re-writing target function images." HTH, Mike -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Brian Hook Sent: Monday, August 18, 2003 6:51 PM To: gam...@li... Subject: [GD-Windows] Hijacking application I have a feeling this can't be done, but I figured I'd ask the list=20 anyways just in case. Say I want to write a plug-in for random application XYZ. XYZ,=20 however, may not have a plug-in API or it may be broken. Use Notepad=20 as an example. If I wanted to add a plug-in, it seems like it would be pretty much=20 impossible unless my plug-in didn't require any of the application's=20 other data. =20 I swore there were a few plug-ins I've seen that have forced their way=20 into an application, but I can't think of what they might be now. The=20 obvious ones are like Visual Assist, Max plug-ins, Maya plug-ins,=20 Photoshop plug-ins, VS plug-ins, etc. but those all have registered=20 APIs. I've seen screenshots of people that have retrofitted a new=20 menu into Notepad just to prove it can be done, but I'm not sure what=20 the point of that is. The typical way you do this is a pretty convoluted process involving=20 subclassing and message hooks, but even then you can only trap new=20 menu items and maybe a couple of key messages like WM_DESTROY. You=20 obviously can't grab application data and do anything meaningful with=20 it. Brian ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU5 |