Hi All,

Is it possible to get return code from remotely started process? Wait
until process stops execution?

Thanks,

Re: Start process remotely and wait for execution by Paul

Paul
Mon Mar 10 11:22:18 CDT 2008

Sure, maybe. What do you mean by "remotely started process"? You're
running a program on your Windows CE device using ActiveSync and RAPI or
what?

Paul T.

"Fatih Isikhan" <efatihan@gmail.com> wrote in message
news:1a2efd42-9af6-4801-8acc-97428853d5b7@2g2000hsn.googlegroups.com...
> Hi All,
>
> Is it possible to get return code from remotely started process? Wait
> until process stops execution?
>
> Thanks,



Re: Start process remotely and wait for execution by efatihan

efatihan
Tue Mar 11 02:10:24 CDT 2008

On Mar 10, 6:22 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
> Sure, maybe. What do you mean by "remotely started process"? You're
> running a program on your Windows CE device using ActiveSync and RAPI or
> what?
>
> Paul T.
>
> "Fatih Isikhan" <efati...@gmail.com> wrote in message
>
> news:1a2efd42-9af6-4801-8acc-97428853d5b7@2g2000hsn.googlegroups.com...
>
> > Hi All,
>
> > Is it possible to get return code from remotely started process? Wait
> > until process stops execution?
>
> > Thanks,

Yes, I am starting process with RAPI through Activesync in WM5.

Re: Start process remotely and wait for execution by Peter

Peter
Tue Mar 11 03:48:43 CDT 2008

There isn't a WaitForSingleObject API in RAPI so no way to directly wait
while the process executes. Assuming you wrote the device code you could
have it write out to the registry or a file when it has finished and poll
for this from the desktop through RAPI...

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Fatih Isikhan" <efatihan@gmail.com> wrote in message
news:9194c4a4-b34c-4f82-b09d-26ef7646f23a@b64g2000hsa.googlegroups.com...
> On Mar 10, 6:22 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
> no instrument no spam DOT com> wrote:
>> Sure, maybe. What do you mean by "remotely started process"? You're
>> running a program on your Windows CE device using ActiveSync and RAPI or
>> what?
>>
>> Paul T.
>>
>> "Fatih Isikhan" <efati...@gmail.com> wrote in message
>>
>> news:1a2efd42-9af6-4801-8acc-97428853d5b7@2g2000hsn.googlegroups.com...
>>
>> > Hi All,
>>
>> > Is it possible to get return code from remotely started process? Wait
>> > until process stops execution?
>>
>> > Thanks,
>
> Yes, I am starting process with RAPI through Activesync in WM5.


Re: Start process remotely and wait for execution by efatihan

efatihan
Tue Mar 11 04:24:38 CDT 2008

On 11 Mart, 10:48, "Peter Foot" <feedb...@nospam-inthehand.com> wrote:
> There isn't a WaitForSingleObject API in RAPI so no way to directly wait
> while the process executes. Assuming you wrote the device code you could
> have it write out to the registry or a file when it has finished and poll
> for this from the desktop through RAPI...
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Fatih Isikhan" <efati...@gmail.com> wrote in message
>
> news:9194c4a4-b34c-4f82-b09d-26ef7646f23a@b64g2000hsa.googlegroups.com...> On Mar 10, 6:22 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
> > no instrument no spam DOT com> wrote:
> >> Sure, maybe. What do you mean by "remotely started process"? You're
> >> running a program on your Windows CE device using ActiveSync and RAPI or
> >> what?
>
> >> Paul T.
>
> >> "Fatih Isikhan" <efati...@gmail.com> wrote in message
>
> >>news:1a2efd42-9af6-4801-8acc-97428853d5b7@2g2000hsn.googlegroups.com...
>
> >> > Hi All,
>
> >> > Is it possible to get return code from remotely started process? Wait
> >> > until process stops execution?
>
> >> > Thanks,
>
> > Yes, I am starting process with RAPI through Activesync in WM5.

This is exactly what i am doing right now and I wanted to know if
there is a shortcut.

Thanks,

Re: Start process remotely and wait for execution by Christopher

Christopher
Tue Mar 11 16:12:04 CDT 2008

Hi,

"Fatih Isikhan" <efatihan@gmail.com> wrote in message
news:c5cef93b-1c6c-471b-890f-3966e36a9dea@e60g2000hsh.googlegroups.com...
> This is exactly what i am doing right now and I wanted to know if
> there is a shortcut.

The only other way I know of would to produce a small client side DLL that
contains a function that calls WaitForSingleObject for the specified process
id. You could then use CeRapiInvoke
(http://msdn2.microsoft.com/en-us/library/aa454605.aspx) on your desktop to
have this function execute on your PDA.

Having said that if you've already got a small status flag in the registry
etc doing the above is most likely more effort than it's worth. Especially
with the security implications of attempting to transfer/invoke custom DLLs
via RAPI on many modern Windows Mobile devices.

Hope this helps,
Christopher Fairbairn