🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ensuring single occurance with CreateProcessAsUser and FUS

#400
From: Remy Lebeau (TeamB)
Date: Tue, 22 Apr 2008 00:19
21 lines
1672 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message 
news:4809401f$1@newsgroups.borland.com...

> I want to ensure that only one occurrence of this Control application
> is launched per logged on user.  As it stands, if a double-click on the
> icon more than once, I get another occurrence of the control app
> launched.  I don't think that I can use the normal mutex system for
> ensuring single occurrence

Yes, you can.

> because this mutex may have been created by a control app on
> another users desktop.

But that mutex would only exist in that user's session only, as long as you 
are not creating the mutex in the "Global" namespace, otherwise it would be 
shared amongst multiple user sessions.


Gambit 
Technical Details
Message-ID: <480d311d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4809401f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7e9dc52f60c5b5d
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4809401f$1@newsgroups.borland.com>
Subject: Re: Ensuring single occurance with CreateProcessAsUser and FUS
Date: Mon, 21 Apr 2008 17:19:53 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 12.187.207.230
Message-ID: <480d311d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208824093 12.187.207.230 (21 Apr 2008 17:28:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail