I have other software that I want to interface with and I need to find the handle so I can hide, minimize, show, etc. Is there a Windows API call that shows the handle of ALL open windows and not just those in OI?
Jeff,
Getting a list of handles without any reference to the application behind them would be fairly useless. You can get the handle of any particular application using the Windows API FindWindow.
The most straight forward way of using this function is passing the class of the window in question (which is the way OI has already prototyped this function), but then you need a way to get the class. You can do this by running a Spy program that comes with most C++ compilers (I believe VB and Delphi also come with one). There are third party spy programs as well that work fine.
Alternatively, you can use FindWindow by passing it the text that appears in the title bar of a window. You will have to create a new prototype for this function to work this way. My suggestion is that you go to www.sprezzatura.com
and download the latest SENL which has an article where Carl Pates explains how to do this very thing.
dbakke@srpcs.com