I'm writing a C++ program which uses Wininet, (InternetOpen and all that stuff). Currently it uploads/downloads files to a server in response to a button press.
I'd quite like to automate this after an ActiveSync, i.e. when the user places the Pocket PC in the cradle, it starts an upload/download.
One way we can think of doing this is to poll the IP address(es) of the Pocket PC, and look for something which isn't 127.0.0.1. This may or may not be a bit messy.
Another way I'd like to do it is to receive a message when ActiveSync connects. Are there any messages I can hook on?
Are there also any messages which might tell me when GPRS has connected?