There are two ways you can use 3270/5250 Support to obtain the window handle of an emulator session window:
1.Call a non-standard HLLAPI function, if one is available, that returns the desired window handle.
2.Search through all the top-level windows in the system for a title bar containing a caption that would only appear in the session windows belonging to the particular emulator. This method, known as pattern matching, is necessary if the emulator's HLLAPI does not provide a function for obtaining the window handle directly. If the emulator uses Multiple Document Interface (MDI), you may also need to search through the child windows for a title bar.