🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Ensuring single occurance with CreateProcessAsUser and FUS

#403
From: Remy Lebeau (TeamB)
Date: Wed, 23 Apr 2008 20:12
19 lines
1681 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message 
news:480f13fd$1@newsgroups.borland.com...

> So what you are basically saying is that when you create a mutex, it
> is only valid for the current user / the environment / desktop that it
> is created in?  Is this correct?

By default, yes.  You have to put it into the "Global\" namespace if you 
want to share it amongst multiple user sessions.

> Do I simply place "Local\" in front of the mutex name to ensure
> that it is not a global mutex?

Yes.  But only on XP and later.  Namespaces are ignored on Win2000, and '\' 
is an illegal character in kernel name for OSs prior to that.


Gambit 
Technical Details
Message-ID: <480f983f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4809401f$1@newsgroups.borland.com> <480d311d@newsgroups.borland.com> <480f13fd$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> <480d311d@newsgroups.borland.com> <480f13fd$1@newsgroups.borland.com>
Subject: Re: Ensuring single occurance with CreateProcessAsUser and FUS
Date: Wed, 23 Apr 2008 13:12:23 -0700
Lines: 21
Organization: Lebeau Software
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: 207.178.157.90
Message-ID: <480f983f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208981567 207.178.157.90 (23 Apr 2008 13:12:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mail