why would you need a mutex? just check through the process list.
Thanks, Tyler Littlefield Web: tysdomain.com email: [email protected] My programs don't have bugs, they're called randomly added features. ----- Original Message ----- From: Tamas Marki To: [email protected] Sent: Wednesday, March 18, 2009 3:58 PM Subject: Re: [c-prog] How to load only one instance in Windows startup? On Wed, Mar 18, 2009 at 10:22 PM, Cristiano <[email protected]> wrote: > How to be loaded only a single instance of my program in memory when Windows > starts? You need to use a named mutex. It's been quite a while since I've done this, but the idea is that you create a named mutex, and check if it already exists. If so, there is already a running instance of your program, and you exit the current instance. Do a little googling on "named mutex" for win32, you'll probably find something helpful. HTH -- Tamas Marki [Non-text portions of this message have been removed]
