>Hi Nadya,
>
>The API you reference to only shows how to prevent second instance of the application from running. The "FirstInstance.prg" does the same in vary similar way. In addition it shows how to make already open application's window active.
Sergey,
Having written the article and having seen Ed's code, if I were currently looking for a solution to this problem, I'd probably use Ed's method with the necessary additions to display the original instance of the application. I say this because Ed's solution requires less code overhead, and, therefore, would be easier to maintain.
Admittedly, I still use my solution, but only because it's the method recommended in the Platform SDK.
George
Ubi caritas et amor, deus ibi est