Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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