Re: RAPI notification on device

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

r_z_aret_at_pen_fact.com
Date: 07/19/04


Date: Mon, 19 Jul 2004 18:15:48 -0400

On Sat, 17 Jul 2004 15:17:02 -0700, "Jonathan"
<Jonathan@discussions.microsoft.com> wrote:

>I have been looking for the same thing. At opennetCF.org they have some ActiveSync tools - http://www.opennetcf.org/docs/Communication/OpenNETCF.Desktop.Communication.ActiveSyncMembers.html The events may be of some help since ActiveSync needs to be connected for RAPI (at least I think so).

RAPI definitely works if and only if an ActiveSync connection is
established. RAPI uses the same transport mechanism as ActiveSync, so
they are tied together at a very low level. A "guest" connection will
suffice (no need for a partnership).

>
>The new version of VB.net should be coming out in the near future. If you can talk to the MVP's or Microsoft representatives in the on-line chats suggest to add some type of notifcation. I'm not sure when vb.net will come out but they were discussing the new features in the on-line chat.
>
>My program needs the same type of notifcation because I want to copy a file from PPC to the PC and then copy another file back. But the second file will be based on the first file. I'm not sure how to do it without having the PC or the PPC just endlessly waiting. It doesn't seem possible to display any type of status to the user. So please consider adding a way for the PC to notify the PPC somehow.

Why not use RAPI in a desktop application that copies the appropriate
file from the handheld, looks at it, and then copies the appropriate
file to the handheld?

>
>Just the ability to send data to the PPC as a USB device without ActiveSync getting in the way would be great. This problem would be fixed if it were possible to send data to the PPC as if it were a serial device. USB is too complicated for most programmers, especially on the PPC. So if a driver could be made that would allow data to be sent to the PPC as a serial device from the PPC it would be very helpful. This would allow for many further features to be added to PPC programs. In the current state, I'm not sure how to communicate with the PPC without ActiceSync intercepting the data. So hopefully this makes sense and is considered.

If you can establish an Ethernet connection, I'm pretty sure you can
get software on the handheld to access "shares" on the "desktop" side.
If you can do that, you can just use file copy functions (FileCopy in
the Win 32 API).

>
>As for your question, hopefully the active sync events from OpennetCF will help you.
>
>"David Beers" wrote:
>
>> I need to programmatically exit an application on the PPC when a RAPI session is initiated with the desktop. I haven't been able to track down what event notification is issued on the device at the initiation of a RAPI connection. Can someone point me in the right direction?
>>
>> TIA!
>>
>> --
>> David Beers
>> Pikesoft Mobile Computing
>> www.pikesoft.com

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com


Quantcast