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

# GetSecurityInfo(3w)

## NAME

**GetSecurityInfo** (ADVAPI32.@)

## SYNOPSIS

DWORD GetSecurityInfo\
  (\
   HANDLE                *hObject*,\
   SE\_OBJECT\_TYPE        *ObjectType*,\
   SECURITY\_INFORMATION  *SecurityInfo*,\
   PSID\*                 *ppsidOwner*,\
   PSID\*                 *ppsidGroup*,\
   PACL\*                 *ppDacl*,\
   PACL\*                 *ppSacl*,\
   PSECURITY\_DESCRIPTOR\* *ppSecurityDescriptor*\
  )

## DESCRIPTION

Retrieves a copy of the security descriptor associated with an object.

## PARAMS

*hObject* **\[In\]**  A handle for the object.

*ObjectType* **\[In\]**  The type of object.

*SecurityInfo* **\[In\]**  A bitmask indicating what information to retrieve.

*ppsidOwner* **\[Out\]**  If non-NULL, receives a pointer to the owner **SID**.

*ppsidGroup* **\[Out\]**  If non-NULL, receives a pointer to the group **SID**.

*ppDacl* **\[Out\]**  If non-NULL, receives a pointer to the **DACL**.

*ppSacl* **\[Out\]**  If non-NULL, receives a pointer to the **SACL**.

*ppSecurityDescriptor* **\[Out\]**  Receives a pointer to the security descriptor, which must be freed with LocalFree.

## RETURNS

**ERROR\_SUCCESS** if all's well, and a Win32 error code otherwise.

## IMPLEMENTATION

Declared in **"aclapi.h"**.

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

Debug channel **"advapi"**.
