Hi,
How to break WaitRun() becouse if application is closed it is still active until started program with WaitRun() is active.
Best regards,
Hi,
How to break WaitRun() becouse if application is closed it is still active until started program with WaitRun() is active.
Best regards,
WaitRun() tries to create the process and if it is not possible then it returns:
if( ! CreateProcess( 0, ( LPSTR ) hb_parc( 1 ), 0, 0, FALSE,
CREATE_NEW_CONSOLE | NORMAL_PRIORITY_CLASS,
0, 0, &StartupInfo, &ProcessInfo ) )
hb_retnl( -1 );
Antonio
Thanks for reply
And what if process is created (program i started with waitrun())
How to kill that proccess (end started program from FW application)
before closing fivewin application.
Best regards,
SendMessage( FindWindow( 0, "Called app title" ), WM_CLOSE )
Antonio
1.
I dont know the app title (main window title) becouse it is changing while executing ...
Need i use GetTasks() ?
GetTasks() for all 16bit apps return app title and for second parameter always C:\WINDOWS\System32\ntvdm.exe
2.
If WaitRun() is used is it possible to start another application with WaitRun() or WinExec() ... or first started app must be closed?
Best regards,