CF1: Start Application and Wait until exit...

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
 
P

Paul G. Tobey [eMVP]

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.
 
J

James levertopf

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top