🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10076

Implementation of run once

#10076
From: Daniele Borini
Date: Thu, 27 May 2004 11:08
11 lines
1404 bytes
hi,
i need to check if my app has been already ran, to deny multiple 
executions on the same PC.
i've thought to search in the active processes list is there's the .exe 
name of my app; if so restore those process's window and exit from the 
second app's instance.
i'd like to know which API lets me to gather infos on processes.
I know in VB there's an interesting Process32Next/Process32First which 
return good infos, but i can't find it in BCB...
10X
Daniele
Technical Details
Message-ID: <40b5cc3f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,91ebf45a6fbd8e57,start
X-Google-Attributes: gid10cc67,public
Date: Thu, 27 May 2004 13:08:42 +0200
From: Daniele Borini <borini@infinito.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.6) Gecko/20040113
X-Accept-Language: it, en, en-us
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Implementation of run once
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.94.232.100
Message-ID: <40b5cc3f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085656127 62.94.232.100 (27 May 2004 04:08:47 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail