Article View: borland.public.cppbuilder.nativeapi
Article #16478Re: Shared memory question
From: Vladimir Afanasyev
Date: Wed, 14 May 2003 09:47
Date: Wed, 14 May 2003 09:47
13 lines
1339 bytes
1339 bytes
Hi, Follow untested. You can create another handle in source process via OpenFileMapping with read-only. Now you have two handles in source process: one more privileged (all access) and other lesser privileged (read-only). Then you can use DuplicateHandle for second handle for every another process that should "read only" shared menory. First handle only for "very privileged" processes. Vladimir.
Technical Details
Message-ID:
<3ec2109d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec201ad$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e0ac8188bda6f9e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-14 02:58:06 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: Shared memory question Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3ec201ad$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ec2109d$1@newsgroups.borland.com> Date: 14 May 2003 02:47:09 -0700 X-Trace: newsgroups.borland.com 1052905629 207.105.83.65 (14 May 2003 02:47:09 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail