Accessing 32-bit DLLs from 64-bit code
Posted: Sat Apr 28, 2018 6:39 am
Thanks to Lailton for googling for it ![Smile :-)](./images/smilies/icon_smile.gif)
https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-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/library/aa365574.aspx?f=255&MSPPError=-2147217396
From all of them, the WM_COPYDATA seems the simplest way to go![Smile :-)](./images/smilies/icon_smile.gif)
SendMessage( hWndToReceiveTheMessage, WM_COPYDATA, hWndSender, pPointerToACOPYDATASTRUCT structure ) --> value returned from hWndToReceiveTheMessage
![Smile :-)](./images/smilies/icon_smile.gif)
https://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/
Basically the technique is to use IPC (Interprocess communication) between a 64 bits app and a 32 bits app:
The following IPC mechanisms are supported by Windows:
Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
Windows Sockets
https://msdn.microsoft.com/en-us/library/aa365574.aspx?f=255&MSPPError=-2147217396
From all of them, the WM_COPYDATA seems the simplest way to go
![Smile :-)](./images/smilies/icon_smile.gif)
SendMessage( hWndToReceiveTheMessage, WM_COPYDATA, hWndSender, pPointerToACOPYDATASTRUCT structure ) --> value returned from hWndToReceiveTheMessage