I have handle to button in some application, that does not belong to my thread space.
I use this code:
to emulate click/keypress on this button.
However, I doubt, that it is most nice and elegant solution - is there any better?
PS: Method shouldn't involve AttachThreadInput calls, and should work on 98 and XP as well.