title: How can I share HWND between 32 and 64 bit applications in Win x64?
body: <p>MSDN tells me that handles to windows (HWND) can be shared between 32- and 64-bit applications, in <a href="http://msdn.microsoft.com/en-us/library/aa384203%28VS.85%29.aspx" rel="noreferrer">Interprocess Communication</a> (MSDN).  However, in Win32 a HWND is 32 bits, whereas in 64 bit Windows it is 64 bits.  So how can the handles be shared?</p>
  
  <p>I guess the same question applies to handles to named objects such as mutexes, semaphores and file handles.</p>