Article View: comp.os.ms-windows.programmer.misc
Article #2922Re: How to avoid multiple instances of a program in NT and 95?
From: Firas El-Hasan
Date: Mon, 10 Feb 1997 00:00
Date: Mon, 10 Feb 1997 00:00
23 lines
1693 bytes
1693 bytes
Why not just use FindWindow(ClassName, WindowTitle)? -- Firas El-Hasan ClubWin & ClubIE Member http://users.aol.com/felhasan/ Mark Henning <mahe0003@stud.uni-sb.de> wrote in article <Pine.SGI.3.95.970204134313.16218D-100000@sbustd.stud.uni-sb.de>... > On Tue, 4 Feb 1997, Richard Baldwin wrote: > > > In article <01bc11ec$dfe21120$b8bfabc7@pongo>, Mickey Williams > > <mickeyw@deltanet.com> writes > > >Create a mutex when your program starts up. GetLastError will return > > >ERROR_ALREADY_EXISTS if the mutex name is already created. > > Does this method work under Win32s? > > I tried it : It don't work. It's impossible to start the first instance > because the program's message is : "There's already one instance active." > > - Mark > >
Technical Details
Message-ID:
<01bc178f$47b2e5c0$d4612299@firase>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<5d4eeb$n6u$1@euler.space.net> <01bc11ec$dfe21120$b8bfabc7@pongo> <3Kq8KAA+ax9yEwPr@ormesci.demon.co.uk> <Pine.SGI.3.95.970204134313.16218D-100000@sbustd.stud.uni-sb.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1124cf,3403ef0501dd273 X-Google-Attributes: gid1124cf,public X-Google-Thread: 113dfb,3403ef0501dd273 X-Google-Attributes: gid113dfb,public X-Google-Thread: f6ef4,3403ef0501dd273 X-Google-Attributes: gidf6ef4,public X-Google-Thread: 105df1,3403ef0501dd273 X-Google-Attributes: gid105df1,public From: "Firas El-Hasan" <FirasE@msn.com> Subject: Re: How to avoid multiple instances of a program in NT and 95? Date: 1997/02/10 Message-ID: <01bc178f$47b2e5c0$d4612299@firase> X-Deja-AN: 217961812 references: <5d4eeb$n6u$1@euler.space.net> <01bc11ec$dfe21120$b8bfabc7@pongo> <3Kq8KAA+ax9yEwPr@ormesci.demon.co.uk> <Pine.SGI.3.95.970204134313.16218D-100000@sbustd.stud.uni-sb.de> organization: Innovative Minds newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,de.comp.os.ms-windows.programmer,fido.ger.windows.prog