RAPI Device Information
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
-
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