Windows Mobile 6.5
A version of this page is also available for

This function saves a copy of the current Windows Embedded CE RAM–based registry to a specified file.

BOOL RegCopyFile(
  LPCWSTR lpszFile


[in] Name of the file to which the registry is saved.

TRUE indicates success; FALSE indicates failure. To get extended error information, call GetLastError. GetLastError can fail, returning ERROR_NOT_SUPPORTED.

The saved registry file can exist on any mounted file system that is accessible to the OS. This function always attempts to create the specified file and open it exclusively for read/write access. The data saved with this function is not compatible with the data saved or restored through the OAL registry functions.

Windows Embedded CEWindows CE 2.10 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions