How to get the handle foreground window in server OS?

81 views Asked by At

I have been working in a project which checks the foreground window every 5 seconds using GetForegroundWindow(), I have a doubt that if multiple users are logged on at same time(let say windows server OS),

1.Whether the function returns multiple handle for foreground window?

2.Is it possible to check what is the foreground window in each user?

0

There are 0 answers