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

# RtlCreateSecurityDescriptor(3w)

## NAME

**RtlCreateSecurityDescriptor** (NTDLL.@)

## SYNOPSIS

NTSTATUS RtlCreateSecurityDescriptor\
  (\
   PSECURITY\_DESCRIPTOR *lpsd*,\
   DWORD                *rev*\
  )

## DESCRIPTION

Initialise a **SECURITY\_DESCRIPTOR**.

## PARAMS

*lpsd* **\[Out\]**  Descriptor to initialise.

*rev* **\[In\]**  Revision, must be set to **SECURITY\_DESCRIPTOR\_REVISION**.

## RETURNS

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

**Failure:** **STATUS\_UNKNOWN\_REVISION** if *rev* is incorrect.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
