2

As noted here, I added code to my handheld app to (attempt to) prevent certain types of files (by extension) from being synced to the PC. But this doesn't work if the user, on the PC, uses ActiveStync to enable file sharing. On doing so, regardless of handheld registry settings, it copies files from the handheld to the PC (from the handheld's \My Documents folder to the PC's C:\Users\clay\Documents\Documents on Clay's Device folder).

Is there a way to programmatically prevent (on the handheld/Windows CE side) this syncing from taking place? Or is it just a matter of the user reaping what they sow when they select file syncronization?

UPDATE

See this (I'm not completely preventing syncing, but I'm preventing the syncing of the files that I don't want to have synced, by making sure that the FileSyncPath registry key does not match where I am saving the data in question).

1
  • 1
    It has been a while since my handheld dev days so not posting an answer. But IIRC we had similar issues and we decided to go with OpenNetCF's RAPI. Activesync was giving us too many problems and with above library we had fine grained control on what exactly we need to pickup from the device and what to ignore. HTH
    – One-One
    Feb 5, 2015 at 4:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.