I have a piece of code that brings the window under the cursor to the foreground using the SetForegroundWindow API for WinXP. I have been testing it for Vista but the API seems to no longer do the job correctly.
AllowSetForeground did not help, my process is a background process.
What can I use to accomplish this?