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

# SfcIsFileProtected(3w)

## NAME

**SfcIsFileProtected** (SFC\_OS.@)

## SYNOPSIS

BOOL SfcIsFileProtected\
  (\
   HANDLE  *RpcHandle*,\
   LPCWSTR *ProtFileName*\
  )

## DESCRIPTION

Check, if the given File is protected by the System.

## PARAMS

*RpcHandle* **\[In\]**  This must be **NULL**.

*ProtFileName* **\[In\]**  Filename with Path to check.

## RETURNS

**Failure:** **FALSE** with **[GetLastError(3w)](/GetLastError/3w.md)** != **ERROR\_FILE\_NOT\_FOUND**

**Success:** **TRUE**, when the File is Protected **FALSE** with **[GetLastError(3w)](/GetLastError/3w.md)** == **ERROR\_FILE\_NOT\_FOUND**, when the File is not Protected.

## BUGS

We return always the Result for: **"File is not Protected"**

## IMPLEMENTATION

Declared in **"sfc.h"**.

Implemented in **"dlls/sfc\_os/sfc\_os.c"**.

Debug channel **"sfc"**.
