Compartilhar via


RegCopyFile

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

BOOL RegCopyFile(
  LPCWSTR lpszFile
);

Parameters

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

Return Value

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

Remarks

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.

Requirements

Header pwinreg.h
Library coredll.lib
Windows Embedded CE Windows CE 2.10 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Registry Functions
RegRestoreFile
RegSaveKey
RegReplaceKey

Other Resources