There is a thread here http://forums.purebasic.com/english/vie ... 1&p=546131
that explains that Windows UWP apps like Calculator don't return a usable ProgramID, since they are intercepted by Windows.
Can anyone suggest a method to run another UWP app (Windows Camera) and be able to determine when it closes?
Thanks,
Eric
Help Running Windows UWP Apps
Re: Help Running Windows UWP Apps
Code: Select all
run=RunProgram("calc.exe","","",#PB_Program_Open)
While ProgramRunning(run)
Debug ProgramID(run)
Wend
Debug ProgramExitCode(run)
Purebasic just start calc.exe,
and calc.exe start "Calculator. exe" and quit.
but calc.exe is not the parent process of "calculator.exe".
so I think calc.exe start calculator.exe through interprocess communication or calling specific parameters of the service program.