How can I share HWND between 32 and 64 bit applications in Win x64?

前端 未结 5 1947
再見小時候
再見小時候 2020-12-09 03:46

MSDN tells me that handles to windows (HWND) can be shared between 32- and 64-bit applications, in Interprocess Communication (MSDN). However, in Win32 a HWND is 32 bits, w

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 04:20

    I just received an email from a Microsoft WOW64 developer who confirms:

    Handles are 32bit and can be safely truncated/zero extended. It is true for both kernel object handles and USER/GDI handles.

提交回复
热议问题