Accessing 32-bit DLLs from 64-bit code
Posted: Sat Apr 28, 2018 6:39 am
Thanks to Lailton for googling for it
https://blog.mattmags.com/2007/06/30/ac ... -bit-code/
Basically the technique is to use IPC (Interprocess communication) between a 64 bits app and a 32 bits app:
From all of them, the WM_COPYDATA seems the simplest way to go
SendMessage( hWndToReceiveTheMessage, WM_COPYDATA, hWndSender, pPointerToACOPYDATASTRUCT structure ) --> value returned from hWndToReceiveTheMessage
https://blog.mattmags.com/2007/06/30/ac ... -bit-code/
Basically the technique is to use IPC (Interprocess communication) between a 64 bits app and a 32 bits app:
https://msdn.microsoft.com/en-us/librar ... 2147217396The following IPC mechanisms are supported by Windows:
Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
Windows Sockets
From all of them, the WM_COPYDATA seems the simplest way to go
SendMessage( hWndToReceiveTheMessage, WM_COPYDATA, hWndSender, pPointerToACOPYDATASTRUCT structure ) --> value returned from hWndToReceiveTheMessage