CF1: Start Application and Wait until exit...

  • Thread starter Thread starter James levertopf
  • Start date Start date
J

James levertopf

Hello

I want to start an application and wait until it exits (C# and .NET CF 1)

It's the wceload.exe where I install a cab with it. but I want to know when
the cab finished installing...

Thanks
 
You need to get the handle associated with the new process. You then need
to wait for that handle to be signaled. In C, you'd use
WaitForSingleObject(). I doubt that the 'handle' can be directly waited on
in C#, so P/Invoke WaitForSingleObject (it's in coredll.dll).

Paul T.
 
Thanks, worked

Paul G. Tobey said:
You need to get the handle associated with the new process. You then need
to wait for that handle to be signaled. In C, you'd use
WaitForSingleObject(). I doubt that the 'handle' can be directly waited
on in C#, so P/Invoke WaitForSingleObject (it's in coredll.dll).

Paul T.
 
Back
Top