Querying device information can be done easily using the Remote API (RAPI) functions exposed by ActiveSync (search the eMbedded Visual Tools Help for more on supported RAPI functions). RAPI has a general function (CeRapiInvoke) that allows you to write custom RAPI functions that use ActiveSync as the transport protocol, so transferring data via serial, USB or Ethernet becomes a simple task.
ADSRapi is a basic sample that demonstrates using CeRapiInvoke to call custom RAPI functions to read and write digital and analog IOs on an ADS Graphics Master development system.
This application will require linking to ActiveSync libraries, which are part of the ActiveSync SDK. If you have not installed a Pocket PC SDK (which includes the ActiveSync SDK), we've posted the ActiveSync SDK and put a link to it in the Using ActiveSync in Your Application section of the ActiveSync Topic Index