This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: handle protection - please comment


Hi!

Wednesday, 18 April, 2001 Robert Collins robert.collins@itdomain.com.au wrote:

>> If you can suggest any other way to pass handles from process A (run
>> by user User1) to process B (run by user User2) without having server
>> run by administrator, it would be great.

RC> Place them in a a list in a shared memory area. That is essentially what
RC> kernels do. No process memory access is needed.

They _are_ in shared memory area already. Passing handle value (via
shared memory area or by other means) from process A to process B is
_not_ enough to use it in process B. win32 handles _must_ be
duplicated after they were passed from one process to another.

i know only 2 things in win32 api which allow using a handle from one
process in another -- either inheritance or DuplicateHandle(). If you
know some other way, it'd be nice to see the proof-of-concept code.

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]