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 UsedCreateFile,
Lines of Code: 69