This simple application demonstrates how to automatically run the device-side piece of ActiveSync (repllog.exe) when a serial cable is connected to the device.
The serial port used must support the DCD (RLSD) line. This example was written for and tested on the BitsyX, but should work on most ADS systems.
| Key APIs Used CreateFile, SetCommMask, WaitCommEvent, GetCommModemStatus, CloseHandle, RegOpenKeyEx, RegSetValueEx, RegCloseKey, CeEventHasOccurred Lines of Code: 69
|