Bad idea, I would say. The processes are isolated, and you are trying to break it. Communication via the Windows handles is obsolete feature unique for Windows systems, not portable to any others, stemmed from the versions of Windows before it was an OS and when Intel protected mode CPU architecture was not yet used. Using it is generally bad. The proper way of inter-process communication is, well
Inter-Process Communication, IPC:
http://en.wikipedia.org/wiki/Inter-process_communication[
^].
If a process is some application with not accessible source code or an API (so you cannot make it an in-proc plug-in or something working in your process) and it is not designed to use any kind of IPC — then no luck. Before thinking of dirty tricks of using Windows handle manipulation, I would think really hard if the integration of it can really be justified, usually not.
—SA