General information
Category:
Windows API functions
>Tim,
>
>If the app is modal how about just using this launcher from VFP?
>
>do while .t.
> do TheRealApp
>enddo
This will not work for me because "RealApp" has to run as an independent process.
>Or you could create a timer object that fired once a minute and checked for the existence of the app window with FindWindow() and if it wasn't there launch it again.
Yeah, this should work, but I was hoping to use the WaitForSingleObject which causes the current to wait until the provided process ID exits.
>>DO WHILE MoreToDo
>> CreateProcess(...)
>> WaitForSingleObject(Process ID, -1)
>> CloseHandle(Process ID)
>> CloseHandle(Thread ID)
>>ENDDO
>>
>>When I tried this, it locked up FoxPro.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only