PDA

View Full Version : Getting a component handle from an external program?



dinbax
08-10-2004, 11:24 PM
A tricky topic, methinks. There's another program running (non-Delphi, if it matters) that I need to get the handle of a specific component on it. I have no idea how to do this. :/

Is there a way to get a list of handles, or something? Or request a certain handle through win32? Grah.

Thanks very much!

Useless Hacker
09-10-2004, 05:08 PM
Look into the EnumWindows (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/EnumWindows.asp) and EnumChildWindows (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/Windows/WindowReference/WindowFunctions/EnumChildWindows.asp) functions.