Help Running Windows UWP Apps

Just starting out? Need help? Post your questions and find answers here.
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Help Running Windows UWP Apps

Post by ebs »

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
ynkrc
User
User
Posts: 55
Joined: Sat Sep 03, 2011 5:28 am

Re: Help Running Windows UWP Apps

Post by ynkrc »

Code: Select all

run=RunProgram("calc.exe","","",#PB_Program_Open)
    While ProgramRunning(run)
      Debug ProgramID(run)
    Wend
Debug ProgramExitCode(run)
Test in win10, the calculator form appear at the time 'run'stoping. and the calculater Form points to a new process "Calculator. exe"
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.
Post Reply