PC Review


Reply
Thread Tools Rate Thread

CF1: Start Application and Wait until exit...

 
 
James levertopf
Guest
Posts: n/a
 
      28th Oct 2009
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

 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      29th Oct 2009
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.

"James levertopf" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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



 
Reply With Quote
 
James levertopf
Guest
Posts: n/a
 
      29th Oct 2009
Thanks, worked

"Paul G. Tobey [eMVP]" <paul tobey _AT_ earthlink _DOT_ net> schrieb im
Newsbeitrag news:#(E-Mail Removed)...
> 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.
>
> "James levertopf" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> 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

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wait for exit =?Utf-8?B?cmF1bGF2aQ==?= Microsoft VB .NET 0 6th Apr 2005 03:07 PM
Best way for one thread to wait on another to exit Howard Swope Microsoft Dot NET Compact Framework 2 1st Apr 2005 08:58 PM
application.exit, application.exitthread exit application problem =?Utf-8?B?TWlrZSBTaWx2ZXI=?= Microsoft Dot NET Framework Forms 2 24th Nov 2004 03:14 AM
Start Application after App.Exit() Konstantin Becker Microsoft Dot NET Compact Framework 2 5th Oct 2004 02:16 PM
Application.exit() vs Environment.exit(-1) vs Application.exitthread() Brendan Miller Microsoft C# .NET 1 5th Feb 2004 08:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:28 PM.