---
name: "RegSaveRestoreW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RegSaveRestoreW"
---

# RegSaveRestoreW(3w)

## NAME

**RegSaveRestoreW** (ADVPACK.@)

## SYNOPSIS

HRESULT RegSaveRestoreW\
  (\
   HWND    *hWnd*,\
   LPCWSTR *pszTitleString*,\
   HKEY    *hkBackupKey*,\
   LPCWSTR *pcszRootKey*,\
   LPCWSTR *pcszSubKey*,\
   LPCWSTR *pcszValueName*,\
   DWORD   *dwFlags*\
  )

## DESCRIPTION

Saves or restores the specified registry value.

## PARAMS

*hWnd* **\[In\]**  Handle to the window used for the display.

*pszTitleString* **\[In\]**  Title of the window.

*hkBackupKey* **\[In\]**  Key used to store the backup data.

*pcszRootKey* **\[In\]**  Root key of the registry value.

*pcszSubKey* **\[In\]**  Sub key of the registry value.

*pcszValueName* **\[In\]**  Value to save or restore.

*dwFlags* **\[In\]**  See advpub.h.

## RETURNS

**Success:** **S\_OK**.

**Failure:** **E\_FAIL**.

## BUGS

Unimplemented.

## IMPLEMENTATION

Declared in **"advpub.h"**.

Implemented in **"dlls/advpack/reg.c"**.

Debug channel **"advpack"**.
