application handle

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

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion