The attached Visual Studio 2008 project illustrates how to use Psion's MDSDK SystemInformation namespace (in C/C++).