2Monza: I tried using FindWindow and GetWindowTask (GetWindowThreadProcessId)! But the latter functions return an incorrect PID.
Added after 1 hour 9 minutes
I found the bug :) I'll fix it tomorrow (as soon as I download winnt.h).
New here? I'm Roha — want a quick tour?