Regarding Conduit.

  • Thread starter Thread starter Amit Patankar
  • Start date Start date
A

Amit Patankar

Hi,

I want to create a conduit, which will copy few XML files from my WinCE
device to Desktop PC as soon as I connect my WinCE device to desktop Pc
using Active Sync. I guess we have to use RAPI API calls to create a DLL
which will do this. Is that right?

Secondly how shall I register this dll with ActiveSync so that as soon as
the device is conneted to the PC, it shall copy all the files.

Is there any sample code or any site which will guide me through this?
Does OpenNetCF support this?

Thanks a lot.
Amit.
 
Amit said:
I want to create a conduit, which will copy few XML files from my WinCE
device to Desktop PC as soon as I connect my WinCE device to desktop Pc
using Active Sync. I guess we have to use RAPI API calls to create a DLL
which will do this. Is that right?

Secondly how shall I register this dll with ActiveSync so that as soon as
the device is conneted to the PC, it shall copy all the files.

Is there any sample code or any site which will guide me through this?
Does OpenNetCF support this?

Yes, look for the Desktop.Communication library on opennetcf.org
 
You can add your application to the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect
registry key on the desktop machine for activesync to automatically launch
your app when it connects. Details are on MSDN here:-
http://msdn.microsoft.com/library/d...ctsy/html/ceconRegistry-BasedNotification.asp

The OpenNETCF desktop library includes an AutoStartOnConnection property you
can use to set this.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Peter said:
You can add your application to the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect
registry key on the desktop machine for activesync to automatically launch
your app when it connects. Details are on MSDN here:-
http://msdn.microsoft.com/library/d...ctsy/html/ceconRegistry-BasedNotification.asp

The OpenNETCF desktop library includes an AutoStartOnConnection property you
can use to set this.

Or alternatively write your app as a service or System Tray app, and
handle the RAPI.ActiveSync.Active event from the desktop library.
 
Back
Top