Without mutex, you can just check the window name, i.e. GNU Backgammon

Checking for a Window name

Instead of class it is possible to find a window if an application
looking for windowname.
  function FindWindowByWindowName (const WindowName: String): Longint;

http://www.vincenzo.net/isxkb/index.php?title=Detect_if_an_application_is_running

This should be reliable, unless the user has another window open with
the same "GNU Backgammon" title... most unlikely

N.


On Thu, Sep 17, 2009 at 1:01 PM, Massimiliano Maini <[email protected]> wrote:
> 1 -It seems it is possible to detect gnubg is runnig when the
> InnoSetup installer is launched (check the section Application is
> running):
>
> http://www.vincenzo.net/isxkb/index.php?title=Application_considerations
>
> Does gnubg create such a mutex ? If yes, what's the mutex name ?
> If no, can we do it so that I can add the check to the installer ?
>
> MaX.
>
>
> _______________________________________________
> Bug-gnubg mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>



-- 
"He is no fool who gives up what he cannot keep to gain what he cannot
lose." -Jim Elliot


_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to