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

# SetFileSecurityW(3w)

## NAME

**SetFileSecurityW** (ADVAPI32.@)

## SYNOPSIS

BOOL SetFileSecurityW\
  (\
   LPCWSTR              *lpFileName*,\
   SECURITY\_INFORMATION *RequestedInformation*,\
   PSECURITY\_DESCRIPTOR *pSecurityDescriptor*\
  )

## DESCRIPTION

Sets the security of a file or directory.

## PARAMS

*lpFileName* \[\]

*RequestedInformation* \[\]

*pSecurityDescriptor* \[\].

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

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

Debug channel **"advapi"**.
