I know it is possible to control windows not opened by the C++ program. I've used a third party program (Macromedia Director) that was able to open, close, minimize, resize, and re-locate any window on the system via C++

Now I need to whittle away the third party program and go straight C (C++).

Does anyone know how to get the Window's ID numbers and the commands to controll them.

I haven't programmed in C for YEARS. I'm a little rusty.

Any and all help will be appreciated.

(Also, we're trying to pull info from the serial port. If anyone knows code for that, it would be great to know too.)