|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
DeviceInfo is a Win32 Desktop component that demontrates the use of IRAPI interfaces to get information about the Windows ®phone connected through ActiveSync and the corresponding communication medium used. Once the information is collected, it is printed on the console window
To run the code sample
Open the project file in Visual Studio. It is located in the folder C:\Program Files\Windows Mobile 6.5.3 DTK\samples\common\CPP\Win32\Rapi\DeviceInfo\DeviceInfo.sln
Navigate to "Tools" -> "Options", and expand "Projects and Solutions" and click "VC++ Directories".
In "Show directories for:" select "Include files".
Add the path to the mobile device include directory. If you accepted the defaults when installing the Windows Mobile SDK, then the new directory will be in " C:\Program Files\Windows Mobile 6.5.3 DTK\Activesync\Inc"
In "Show directories for:" select "Library files".
Add the path to the mobile device library directory. If you accepted the defaults when installing the Windows Mobile SDK, then the new directory will be in " C:\Program Files\Windows Mobile 6.5.3 DTK\Activesync\Lib"
Navigate to "Build", and click "ReBuild All" to compile the executable file.
From a command line, run DeviceInfo.exe while a device is connected
SDK:Windows Mobile Professional SDK and Windows Mobile Standard SDK
Development Environment:Visual Studio 2005 or 2008.