Linking two programs via Windows API

I am writing a program to enhance the usability of an already written program. Someone suggested that I interface the two via the windows API: The program I would like to add functionality to was not written in java and I do not have access to the source code. What was suggested to me was that I track down the handles for the buttons on the program (the buttons being the only important features I need access to) and connect that way.

This seemed like a good idea....except I have no idea what this guy was talking about! Can someone explain this to me or at least point me in the right direction?

Thank you very much,

Plastech

[655 byte] By [Plastecha] at [2007-10-2 0:46:50]
# 1
http://java.sun.com/docs/books/tutorial/native1.1/
CeciNEstPasUnProgrammeura at 2007-7-15 17:56:40 > top of Java-index,Java Essentials,Java Programming...
# 2

Ok, that seems pretty complicated but looks promising.

So how would I find out how to access the buttons found in the other application? What is all this talk of handles? I am really not very familiar with the windows api.

And how is it possible that I could access those handles from a different program?

Plastecha at 2007-7-15 17:56:40 > top of Java-index,Java Essentials,Java Programming...
# 3

> So how would I find out how to access the buttons

> found in the other application? What is all this

> talk of handles? I am really not very familiar with

> the windows api.

Neither am I. After all, this is a Java board.

> And how is it possible that I could access those

> handles from a different program?

The "different program" needs to allow you to access them, of course, by offering the appropriate interface.

CeciNEstPasUnProgrammeura at 2007-7-15 17:56:40 > top of Java-index,Java Essentials,Java Programming...