> > So can ALL HANDLEs be shared? E.g., one created by CreateFile()?
>
> Yes.  The reason you would want to dup handles if sharing it in multiple
> threads is so that one thread could "close" the handle and get rid of it
> while allowing the other thread to continue to use it.  So say you have a
> signal, you dup the handle across all the threads that want to use it and
> they can all wait on it.  When they exit they just close thier
> dup handle,
> and the last handle that closes will actually cause the signal to get
> cleaned up / delted.

That sounds like a pretty good use - I may indeed make use of that one day.

> Well technically IINM the exe still has a dll that gets mapped in
> that stubs
> out and passes the calls off to the "real" exe out of proc.  And
> I believe
> the ocx is treated like the dll, it's mapped in.

OK, I'll work on this principle and assume same process then. I'm sure I'm
not going to be passing many handles from app to OCX {:v)

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to