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

# LsaSetSecret(3w)

## NAME

**LsaSetSecret** (ADVAPI32.@)

## SYNOPSIS

NTSTATUS LsaSetSecret\
  (\
   IN LSA\_HANDLE          *SecretHandle*,\
   IN PLSA\_UNICODE\_STRING *EncryptedCurrentValue*,\
   IN PLSA\_UNICODE\_STRING *EncryptedOldValue*\
  )

## DESCRIPTION

Set old and new values on a secret handle.

## PARAMS

*SecretHandle* **\[In\]**  Handle to a secret object.

*EncryptedCurrentValue* **\[In\]**  Pointer to encrypted new value, can be **NULL**.

*EncryptedOldValue* **\[In\]**  Pointer to encrypted old value, can be **NULL**.

## RETURNS

**Success:** **STATUS\_SUCCESS**

**Failure:** **NTSTATUS** code.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/advapi32/lsa.c"**.

Debug channel **"advapi"**.
