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

# StampFileSecurity(3w)

## NAME

**StampFileSecurity** (SETUPAPI.@)

## SYNOPSIS

DWORD StampFileSecurity\
  (\
   LPCWSTR              *lpFileName*,\
   PSECURITY\_DESCRIPTOR *pSecurityDescriptor*\
  )

## DESCRIPTION

Assign a new security descriptor to the given file.

## PARAMS

*lpFileName* **\[In\]**  Name of the file.

*pSecurityDescriptor* **\[In\]**  New security descriptor.

## RETURNS

**Success:** **ERROR\_SUCCESS**

**Failure:** other

## IMPLEMENTATION

Declared in **"setupapi.h"**.

Implemented in **"dlls/setupapi/misc.c"**.

Debug channel **"setupapi"**.
