in reply to Re: Pass filehandles around between (unrelated) processes on Windows
in thread Pass filehandles around between (unrelated) processes on Windows

As far as I'm aware, each handle (not a fileno, necessarily, as Windows handles exist for UI-Windows, process/thread handles, mutexes and various other things) is only valid per-thread. To pass a handle to another thread (or another process), you need to DuplicateHandle() it for the recipient.

  • Comment on Re^2: Pass filehandles around between (unrelated) processes on Windows