Alexander Yaworsky wrote:
Hello
Well, not quite. You can open another handle to the process using DuplicateHandle or something else, so you need to go via the server. The simplest way to do this using Win32 is: if (GetProcessId(handle) == GetCurrentProcessId())
You miss. It seems we really need __wine_is_current_process.
Sorry, GetProcessId is not available in Wine yet. I'll submit a patch to add it.
Is it really necessary to perform the action required for remote invocation of some operation asynchronously? It seems to add a lot of unneeded complexity.
What shall we do with csVirtual critical section in ntdll/virtual.c?
Ah, I see now. We may need to make server calls while in the remote process and they will hang unless the "remote operation call" is done asynchronously.
Rob