The reason I ask is that the widow does not support a good way of communicating between processes. Therefore, I want to create a DLL for the connection point between Windows processes. A thread belongs to a process and cannot be transferred to another process. Each thread has its own stack. If a DLL (loadlibray) is loaded and a DLL function is called that requests windows for memory. I am writing to think that a thread still belongs to the same process and allocates memory in the same process.
So, I think I can refer to the assembly to redistribute a small block of memory to another process. Create a critical section, copy the data to another (already created) memory block and return the original block to the original process with the window settings disabled. Someone has done this before. Or is this the best way.
Regards, Lex Dean
I see other methods that heal quite quickly, but I need a very fast method that has a little overhead. Pipes and the Internet will obviously work, but not the best option, but easy to implement (thanks, to offer such suggestions guys). Sometimes I want to send several 500 byte blocks at fairly regular intervals. I like WM_COPYDATA because it looks fast, my biggest question I have looked around the internet is: GetCurrentProcess and DuplicateHandle to get a real handle. Search for another process. And using messages to configure memory, then use WM_COPYDATA. I need only two messages: a) pointer and size; b) the data has been copied. I easily process my GetCurrentProcess application process, with the exception of my pseudo descriptor,which is always equal to $ FFFFFFE. I need a real process descriptor, and no body on the Internet gives an example of a DuplicateHandle. This is what guarded me. Can you show me an example of a DuplicateHandle because I was about to be puzzled?
, , .
, , . Delphi , TSpeedButton, , , , 80 , . dlls. , Mads Elvheim, , . - *.Dll
, / *.DLL , , , .
, *.DLL , Im .
DLL , .
- , . . . , , .
, , , , . , , , , .