Create File on Desktop from PocketPC

  • Thread starter Thread starter Kris
  • Start date Start date
K

Kris

Hi,
I have a long running maintenance process on the pocketPC which is
initiated from the Desktop via RAPI. I would like to know when the
Process ends. I posted here sometime ago and someone here responded make
use of the WaitForSingleObject on the process handle returned from
CeCreateProcess. However it doesnt work. How do I detect when the
process completed its run on the PocketPC? I can poll the process list
but didnt find it to be a clean way of doing it.
One other way could be to create a file on the Desktop PC from the
PocketPC at the end of the process and I could use the FileWatcher on
the desktop to know when the process exited. Is it possible to do this?
If so what is the API involved.

Thanks,
Kris
 
WaitForSingleObject won't work becasue the handle is a device handle, not a
desktop handle. Make a custom RAPI method that runs and waits and P/Invoke
it.

-Chris
 
Back
Top