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

# LsaOpenPolicy(3w)

## NAME

**LsaOpenPolicy** (ADVAPI32.@)

## SYNOPSIS

NTSTATUS LsaOpenPolicy\
  (\
   IN PLSA\_UNICODE\_STRING    *SystemName*,\
   IN PLSA\_OBJECT\_ATTRIBUTES *ObjectAttributes*,\
   IN ACCESS\_MASK            *DesiredAccess*,\
   IN OUT PLSA\_HANDLE        *PolicyHandle*\
  )

## DESCRIPTION

Opens a handle to the Policy object on a local or remote system.

## PARAMS

*SystemName* **\[In\]**  Name of the target system.

*ObjectAttributes* **\[In\]**  Connection attributes.

*DesiredAccess* **\[In\]**  Requested access rights.

*PolicyHandle* **\[In/Out\]**  Handle to the Policy object.

## RETURNS

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

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

## NOTES

Set *SystemName* to **NULL** to open the local Policy object.

## IMPLEMENTATION

Declared in **"ntsecapi.h"**.

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

Debug channel **"advapi"**.
