SYNCHRONIZE ACCESS

SYNCHRONIZE ACCESS

I have an executable created in Visual Studio as a FORTRAN console application. I am starting this application from within another application with the CreateProcess API.
I would like to then use the WaitForSingleObject API to detect when this console process has ended. To do this it appears that Windows NT requires at least 'SYNCHRONIZE' access to that process (see SDK notes on the OpenProcess API).
Right now I do not have this type of access.
Any thoughts on what can be done in Fortran at compile time to insure that I can get the 'SYNCHRONIZE' access?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.