๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MUTEX Objects

#14445
From: Remy Lebeau (TeamB)
Date: Thu, 14 Aug 2003 17:50
25 lines
1809 bytes
"Leo Havm๏ฟฝller" <leh@-nospam-rtx.dk> wrote in message
news:3f3b244f@newsgroups.borland.com...

> The GUI app lives in a windows station whereas the service does not.
> You need to add "Global\" to the mutex name. See "terminal services"
under:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas
e/createmutex.asp

I agree, but with an added comment.  Not all Windows Os support "Global" so
you have to do additional version checking to determine when you need to
prepend "Global" and when you can't or shouldn't:

    Object Names
    http://msdn.microsoft.com/library/en-us/dllproc/base/object_names.asp

    Kernel Object Namespaces.

http://msdn.microsoft.com/library/en-us/termserv/termserv/kernel_object_name
spaces.asp


Gambit
Technical Details
Message-ID: <3f3bca56$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,1fbb91fdbd389c0b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-14 10:47:46 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f3a81c8@newsgroups.borland.com> <3f3b244f@newsgroups.borland.com>
Subject: Re: MUTEX Objects
Date: Thu, 14 Aug 2003 10:50:28 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f3bca56$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060883030 207.175.226.26 (14 Aug 2003 10:43:50 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail