🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ensuring single occurance with CreateProcessAsUser and FUS

#390
From: Bob Gonder
Date: Sat, 19 Apr 2008 19:35
10 lines
1329 bytes
Mike Collins wrote:

> I don't think that I can use the 
>normal mutex system for ensuring single occurrence because this mutex may 
>have been created by a control app on another users desktop.
>
> Does anyone have any suggestions?

Named Mutex, on the user's and your gina's name.
	MutexName = MyServiceName + User.Name;
Technical Details
Message-ID: <07ik04pfuic211e0qbcgtteaohrrr91ncj@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Ensuring single occurance with CreateProcessAsUser and FUS
Date: Sat, 19 Apr 2008 12:35:25 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <07ik04pfuic211e0qbcgtteaohrrr91ncj@4ax.com>
References: <4809401f$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.145.64
X-Trace: newsgroups.borland.com 1208633721 67.77.145.64 (19 Apr 2008 12:35:21 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail