Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, AndrewAMD, 1 invisible), 18,256 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to check if the application is running #305892
01/18/10 08:24
01/18/10 08:24
Joined: Dec 2008
Posts: 124
bobby_danseco Offline OP
Member
bobby_danseco  Offline OP
Member

Joined: Dec 2008
Posts: 124
how to check if the application is running already.
i wanted to avoid running of multiple instances incidentally..

thanks

Re: how to check if the application is running [Re: bobby_danseco] #305913
01/18/10 12:43
01/18/10 12:43
Joined: Mar 2009
Posts: 112
Germany
K
KDuke Offline
Member
KDuke  Offline
Member
K

Joined: Mar 2009
Posts: 112
Germany
I guess you have to resort to the Windows "Process Status API".
Here is a sample of how to obtain information about all currently running processes:
Enumerating All Processes (Windows)

greeting
K-Duke


Using A7 Free
Click and join the 3dgs irc community!
Room: #3dgs
Re: how to check if the application is running [Re: KDuke] #305915
01/18/10 13:13
01/18/10 13:13
Joined: Dec 2008
Posts: 124
bobby_danseco Offline OP
Member
bobby_danseco  Offline OP
Member

Joined: Dec 2008
Posts: 124
Thanks KDude laugh

Re: how to check if the application is running [Re: bobby_danseco] #305973
01/18/10 18:53
01/18/10 18:53
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
The most efficient way would be to create a MUTEX using win32 functions 'CreateMutex','OpenMutex', etc.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1