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

# NtSetSecurityObject(3w)

## NAME

**NtSetSecurityObject** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtSetSecurityObject\
  (\
   HANDLE               *Handle*,\
   SECURITY\_INFORMATION *SecurityInformation*,\
   PSECURITY\_DESCRIPTOR *SecurityDescriptor*\
  )

## DESCRIPTION

Sets specified parts of the object's security descriptor.

## PARAMS

*Handle* **\[In\]**  *Handle* to the object to change security descriptor of.

*SecurityInformation* **\[In\]**  Specifies which parts of the security descriptor to set.

*SecurityDescriptor* **\[In\]**  New parts of a security descriptor for the object.

## RETURNS

**NTSTATUS** code.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/sec.c"**.

Debug channel **"ntdll"**.
