Sharing HDC between different processes

Posted by Heinrich Ulbricht on Stack Overflow See other posts from Stack Overflow or by Heinrich Ulbricht
Published on 2010-03-23T11:37:04Z Indexed on 2010/03/23 18:53 UTC
Read the original article Hit count: 492

Filed under:
|
|
|

Hi,

I am writing some kind of IPC functionality and need to pass certain resources from one process to another. This works well for Pipe handles etc. which can be duplicated via DuplicateHandle. Now I need to pass a HDC from one process to the other. Is this even possible? If yes: how?

Sub-Question: I am assuming passing window handles (HWND) from one process to the other is safe. Is this assumption correct?

Thanks for your help!

© Stack Overflow or respective owner

Related posts about Windows

Related posts about winapi