How to cut down ActiveSync functionality on Windows CE device - c#

Is there any way to cut down a specific functions of ActiveSync service on Windows CE device?
I want to see only one specific folder on my device when it's connected to PC.
Basically I want to leave only functionality of exchanging data via a specific folder, without any other communication (deploying applications, synchronization etc.).
I'm using a device with Windows CE 5.0.

ActiveSync really only has 2 "modes" - either with the ability to sync PIM info, or just the ability to connect as Guest. In both modes a user can browse the device from the PC.
What it sounds like you want to do is not include ActiveSync at all, but instead make your device a USB function device that acts as Mass Storage. If you do that you can then set a specific folder to be the mounted store and they would have access to only that folder.
Of course in that scenario you can't use any of the PIM data sync features.

Related

Unity3D - Transfer Data between a Mobile and a Desktop Application

I have a desktop application to store various data in a database (up to 10k datasets).
Then i have multiple mobile devices (Android and Apple) to collect data by user-input (up to 2k datasets).
Assuming a not existing wlan or internet connection: what is the best way to transfer or synchronize data between Desktop - Mobile and vice versa ?
I would try to copy the db-file to the mobile device and update the mobile-db via script comparation (slow..).
A) How to access usb-connected mobile storage via desktop-app?
B) How to find, read and write those files on mobile?
Assuming i have wlan if i come home with mobile and dont wanna mess with usb.
C) Transfer data via multiplayer-communication-stuff? Like the two running apps communicate via chat-like system. One dataset per message; then parsed to desktop-db. ... seems also slow.
Best solution would be.. both ^^ the user should be able to choose.
What do u folks think ? :)
If you can tether a hotspot point from your mobile, connect your pc to this network and use sockets or http requests between your applications.

Transferring files from windows ce to desktop

Is there a way to connect a Windows CE 6.0 device to a Windows 7 desktop PC without using activesync
There's no way to just connect the two and have them communicate without some form of driver or application being written. ActiveSync/WMDC is what Microsoft shipped "out of the box". If you want to do what it does, then you have to replace it with another app or protocol, and it generally requires you to do both sides - a device app and a PC app.
What that would look like depends on how you intend to connect. If you want to use USB, then you can likely use the CE RNDIS driver, so that the device shows up as an NDIS device, then use the desktop APIs to send network traffic to and from the device. Of course you'll have to put an app or service on the device that knows how to take commands and do something with them.

access Data on PC by Phone via USB

Is It possible, to get some data via usb from your pc with an app, or must there be another software on the PC that pushes the needed files to the Phone?
to clarify what i mean:
i have a pc with a MySQL Database which is used and maintained by a programm on the pc. what i need are some informations of this DB, so i want to have a button in my app, which says sth. like "Get it!" and then the app connects to the DB via USB, retrieves all the data needed and then displays it on the screen (for example).
Check this question: android phone mount desktop partitions via USB port (Reverse USB Tethering in disk level?) and read the first answer's link, which seems to get into something similar to what you want, albeit not using xamarin.android

Sync between two windows phone devices

I have a project wherein i have to create a windows mobile app which synchronize files between two windows phone, provided that the connectivity between two phone should be through WiFi.
Being new to this app development field , i have no idea on where to start and where to look. Is there any sample application present to sync data between two phones without involving any database. And what API should i use. i referred to some tutorials on this website.
This won't be possible without a server between both phones. Microsoft is very restrictive and won't let you access the WiFi connection. Actually you would have to use one of the phones as a WiFi hotspot and the other one as client and this is definitely not possible with an WP app.
I would recommend to write a Windows Service (have a look at WCF) which both phones connect to. This service would have to do all the work which would be:
Wait for phone requests to work with them
Handle the request when a phone wants to synchronize data
Let the second phone know that there are new data to receive
Transfer data to the second phone
Actually there will be more requirements for such a service (e.g. security) you will have to deal with.
Yet, there is a solution because Rudy Huyn connected several Windows phone using the connection Wifi without server http://www.youtube.com/watch?feature=player_embedded&v=rl0VHkoOHTA
But I don't know how..

Getting the wired network name and security level on Windows

And by this question I mean the user assigned names windows lets you type in like: "My home network" "Basement" "Garage" not the ssid (though I would also like to read that one for the wifi connections)
and I especially want to read the windows security levels that can be chosen for networks: Home/Office/Public
I want to use this information to switch programs on and off automatically when connecting to various networks.
Update:
Thanks to the answer of #Damien_The_Unbeliever I was able to solve my question and find the following information, I hope it will help others too:
Network awareness in windows 7 and vista (MSDN, Unmanaged)
Windows API Code Pack (Microsoft, managed wrapper for
NetworkListManager and others)
How to use the windows NLM API to get notified of new network
connectivity (Codeproject, Managed)
It sounds like you want to use the Network List Manager:
The Microsoft Windows networking environment allows multihomed computers to connect to several networks simultaneously. There may be multiple wireless networks available along with LAN and dial-up connections. Network List Manager identifies available networks and returns network attribute data to the application.
It's a COM API, I'm not aware of a managed equivalent.

Categories

Resources