Retrieve Registry Settings
8/28/2008
This code sample is named Pregdmp. It demonstrates how to retrieve a Mobile device's list of registry settings.
Feature Area
Relevant APIs
- ActiveSync API
- CeRapiInit (RAPI) function
- CeRapiUninit (RAPI) function
- CeRegCloseKey (RAPI) function
- CeRegEnumKeyEx (RAPI) function
- CeRegEnumValue (RAPI) function
- CeRegOpenKeyEx (RAPI) function
Usage
To run the code sample
Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:
C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CPP\Win32\Rapi\Pregdmp
Microsoft Visual Studio 2005 launches and loads the solution.
Open the Tools menu in Visual Studio, and navigate to Options, expand Projects and Solutions, and click VC++ Directories.
In Show directories for:, select Include files.
Add the path to the ActiveSync include directory. The default location is:
C:\Program Files\Windows Mobile 6 SDK\Activesync\inc
.In Show directories for:, select Library files.
Add the path to the ActiveSync library directory. The default locations is:
C:\Program Files\Windows Mobile 6 SDK\Activesync\Lib
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
To use the application
To generate the list of registry settings, type the following command at the command-line prompt:
Pregdmp
Remarks
This application runs on a host desktop computer.
Development Environments
SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.
See Also
Concepts
Code Samples for Windows Mobile