Finding a handle that persists when relaunching parent

Posted by cidtek on Stack Overflow See other posts from Stack Overflow or by cidtek
Published on 2009-10-01T14:26:52Z Indexed on 2010/04/18 1:03 UTC
Read the original article Hit count: 251

Filed under:

I need to interact with 3'rd party applications by knowing the handle of certain text fields, but the hWnd always changes when that window is recreated. Is there any method that would allow me to identify a window and repeatedly be able to access that window (even after it is closed and then reopened) without having the user manually identify the window?

I need the user to be able to identify a window with the usual click, drag and release method but only have to do it once and not every time the target window is recreated.

© Stack Overflow or respective owner

Related posts about winapi