MSDN Library

RAPI Device Information

Windows Mobile 6.5
Windows Mobile SupportedWindows Embedded CE Not Supported
8/28/2008

DeviceInfo is a Win32 Desktop component that demontrates the use of IRAPI interfaces to get information about the Windows Mobile powered device connected through ActiveSync and the corresponding communication medium used. Once the information is collected, it is printed on the console window

Feature Area

Remote API 2 (RAPI2)

Networking - Remote

Relevant APIs

IRAPIDesktop

IRAPIDevice

  1. Open the project file in Visual Studio. It is located in the folder C:\Program Files\Windows Mobile 6 SDK\samples\common\CPP\Win32\Rapi\DeviceInfo\DeviceInfo.sln

  2. Navigate to "Tools" -> "Options", and expand "Projects and Solutions" and click "VC++ Directories".

  3. In "Show directories for:" select "Include files".

  4. 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 SDK\Activesync\Inc"

  5. In "Show directories for:" select "Library files".

  6. 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 SDK\Activesync\Lib"

  7. Navigate to "Build", and click "ReBuild All" to compile the executable file.

  8. From a command line, run DeviceInfo.exe while a device is connected

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK 

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

Community Additions

Show:
© 2016 Microsoft