Perhaps you can do what you want to do with a global message hook
(SetWindowsHookEx). I've found that there are very few things you can't
do with SetWindowsHookEx that involve windows, threads, and messages.
This is certainly infinitely more reliable than an API hook.

John K. wrote:

> Hi all,
> How can I emulate the LockSetForegroundWindow() function in a pre
> Windows ME/2000 system? Is using API hooks the only possibility?
> No, setting my window as TOPMOST is not a solution.
> Thanks,
> John

- Nick Ryan (MVP for DDK)