Originally Posted By: Ch40zzC0d3r
I wont wait for a return value too, thats why I said change the code in the dll, but if he cant thats a way I would use.

I tried to explain several times. This way cannot work and it does not.

Either the dll function is blocking. Then the engine won't proceed until that function has returned anyway and it's nonsense to wait. Or the dll function is not blocking. Then you need to call an additional function that checks if there is anything in progress or you need to pass an address to the function where a result can be stored and have to check if the content of that address is changed. But it won't work with return values the way you want to do it here.


Always learn from history, to be sure you make the same mistakes again...