application handle - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

application handle

Alien15Alien15 Posts: 23Member
I'm need to get handle of active application. I've tried this:

Handle := GetWindow(GetForegrountWindow, GW_OWNER);

But it's doesn't work. Is there any 'GetActiveApp' function?

Comments

  • zibadianzibadian Posts: 6,349Member
    : I'm need to get handle of active application. I've tried this:
    :
    : Handle := GetWindow(GetForegrountWindow, GW_OWNER);
    :
    : But it's doesn't work. Is there any 'GetActiveApp' function?
    :
    You need to use the Process32First() and Process32Next() functions for that. See the help files or the microsoft online SDK for more info.
Sign In or Register to comment.