Retrieve Registry Settings

This code sample is named Pregdmp. It demonstrates how to retrieve a Mobile device's list of registry settings.
-
ActiveSync API
-
CeRapiInit (RAPI) function
-
CeRapiUninit (RAPI) function
-
CeRegCloseKey (RAPI) function
-
CeRegEnumKeyEx (RAPI) function
-
CeRegEnumValue (RAPI) function
-
CeRegOpenKeyEx (RAPI) function
-
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\PregdmpMicrosoft 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 generate the list of registry settings, type the following command at the command-line prompt:
Pregdmp
Concepts
Code Samples for Windows MobileOther Resources
ActiveSync Application DevelopmentCeRapiInitEx (RAPI)