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

# TakeOwnershipOfFile(3w)

## NAME

**TakeOwnershipOfFile** (SETUPAPI.@)

## SYNOPSIS

DWORD TakeOwnershipOfFile\
  (\
   LPCWSTR *lpFileName*\
  )

## DESCRIPTION

Takes the ownership of the given file.

## PARAMS

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

## RETURNS

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

**Failure:** other

## IMPLEMENTATION

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

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

Debug channel **"setupapi"**.
