Article View: borland.public.cppbuilder.nativeapi
Article #16336Re: Shared memory question
From: Vladimir Afanasyev
Date: Fri, 16 May 2003 14:51
Date: Fri, 16 May 2003 14:51
18 lines
1773 bytes
1773 bytes
If name of file mapping is known for all processs it is impossible to do restriction for write (just as you said in your first letter). If name of file mapping is unknown it is possible to restrict access for writing in shared memory. For this DuplicateHandle is needed (as I write in my first letter). The question WHO will call DuplicateHandle is not important because in both cases IPC needed. Even calling from source process is preferable because this process gives service for another processes. If to return to initial question it is not absolutely clear what case he means but seems to be yours. Vladimir.
Technical Details
Message-ID:
<3ec4fae5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec201ad$1@newsgroups.borland.com> <3ec2709a@newsgroups.borland.com> <3ec37cee$1@newsgroups.borland.com> <3ec3c804$3@newsgroups.borland.com> <3ec3ceac$1@newsgroups.borland.com> <3ec41c72$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-16 07:56:09 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> <3ec2709a@newsgroups.borland.com> <3ec37cee$1@newsgroups.borland.com> <3ec3c804$3@newsgroups.borland.com> <3ec3ceac$1@newsgroups.borland.com> <3ec41c72$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ec4fae5$1@newsgroups.borland.com> Date: 16 May 2003 07:51:17 -0700 X-Trace: newsgroups.borland.com 1053096677 207.105.83.65 (16 May 2003 07:51:17 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail