I want to determine in vb code when a windows process is closed (which I have previously opened). But I get an error when I want to run:
Call GetExitCodeProcess(handle_Process, lp_ExitCode)
And the error message is: "Attempt to read or write to protected memory, this often indicates that there is another damaged memory."
I am based on the code on the following page: Open process and wait for it to end