User Profile Storage (Windows Embedded CE 6.0)

1/6/2010

The location of the profile directories for all users is stored in the following registry key: HKEY_LOCAL_MACHINE\init\BootVars. The same key is used for both the RAM-based registry and the hive-based registry. The location is the root folder under which there are individual user profile directories.

With the RAM-based registry, the registry value must contain the OEM-specified full path to a user's profile directory, such as <root folder>\Documents and Settings\.

With the hive-based registry, the registry value contains only the path, excluding the root folder, such as \Documents and Settings\. During the Filesys.dll boot process, the path specified by the OEM is appended to the file system root folder that registers containing the registry. In other words, the user profile directories must be stored on the same file system as the system hive, as shown in the following registry key example:

[HKEY_LOCAL_MACHINE\init\BootVars]
   "PROFILEDIR"="<your location>"

Applications can use SHGetSpecialFolderPath and specify the CSIDL_PROFILE CSIDL value to get the location of the current user's directory.

See Also

Concepts

User Profiles in the Registry
User Profile Setup
User Management