Re: Limiting to one instance

Wismerhill <[email protected]> Thu, 17 Aug 2006 10:24:55 +0200
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
--===============1481062669==
Content-Type: multipart/alternative; 
	boundary="----=_Part_13883_1906871.1155803095237"

------=_Part_13883_1906871.1155803095237
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Some info here: http://www.ddj.com/dept/windows/184416853

2006/8/15, Research <[email protected]>:
>
> Is the preferred method of not allowing multiple instances of a game to
> run
> at the same to use named mutexes via CreateMutex and test for it's
> exeistence on startup?
>
> I found an example on MSDN, but it seems targeted at .NET applications.
> I'm
> not sure if there's an easier way to prevent mutliple launches for a Win32
> app.
>
> Thanks,
> Brett Bibby
> GameBrains
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gamedevlists-windows mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
>

------=_Part_13883_1906871.1155803095237
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Some info here: <a href="http://www.ddj.com/dept/windows/184416853">http://www.ddj.com/dept/windows/184416853</a><br><br><div><span class="gmail_quote">2006/8/15, Research &lt;<a href="mailto:[email protected]">[email protected]
</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is the preferred method of not allowing multiple instances of a game to run<br>
at the same to use named mutexes via CreateMutex and test for it's<br>exeistence on startup?<br><br>I found an example on MSDN, but it seems targeted at .NET applications. I'm<br>not sure if there's an easier way to prevent mutliple launches for a Win32
<br>app.<br><br>Thanks,<br>Brett Bibby<br>GameBrains<br><br><br>-------------------------------------------------------------------------<br>Using Tomcat but need to do more? Need to support web services, security?<br>Get stuff done quickly with pre-integrated technology to make your job easier
<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;dat=121642
</a><br>_______________________________________________<br>Gamedevlists-windows mailing list<br><a href="mailto:[email protected]">[email protected]</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows">
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows</a><br>Archives:<br><a href="http://sourceforge.net/mailarchive/forum.php?forum_id=555">http://sourceforge.net/mailarchive/forum.php?forum_id=555</a><br></blockquote>
</div><br>

------=_Part_13883_1906871.1155803095237--


--===============1481062669==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
--===============1481062669==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
--===============1481062669==--