I need to enable a disabled button from an external application.
I do not know the handle of this button or window - the FindWindow or FindWindowEx API call can't do this. The button will never be found until it is enabled.

But this must be possible. I opened the Spy++ to get information about this and the program found the button and the process ID and the thread ID.

The problem:

All that values are in hex and I need the long value of the window's handle. There is always an access number in hex, but I don't know for what the number is and how to use it in an API call.
This number is always the same - I guess the window or the button can be identified with this number.

Is there any way to get the handle of the disabled button?

thx!