O.P. RE: Interop.Call("user32.dll","GetActiveWindow") returns 0
Thank you very much!
I've tried before the GetWindowThreadProcessId, but it returned different number then expected, but with your code it's working great.
P.S.
You've misspelled: GetForegroundWindow[/code]
|