Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 function
- CeRapiUninit function
- CeRegCloseKey function
- CeRegEnumKeyEx function
- CeRegEnumValue function
- CeRegOpenKeyEx function
- Remote API (RAPI) API
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 CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Rapi\Pregdmp\``pregdmp.slnC:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Rapi\Pregdmp\``pregdmp.slnMicrosoft 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 locations are:
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Activesync\Incfor Pocket PC, andC:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Activesync\Incfor Smartphone.In Show directories for:, select Library files.
Add the path to the ActiveSync library directory. The default locations are:
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Activesync\Libfor Pocket PC, andC:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Activesync\Libfor Smartphone.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.
Requirements
Pocket PC SDK: Windows Mobile 5.0 Pocket PC SDK.
Smartphone SDK: Windows Mobile 5.0 Smartphone SDK.
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.0.
See Also
Code Samples | ActiveSync Reference | CeRapiInitEx
Send Feedback on this topic to the authors