Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit focus mode

SfcIsFileProtected function (sfc.h)

  • 2024-02-22
Feedback

In this article

Determines whether the specified file is protected. Applications should avoid replacing protected system files.

Syntax

BOOL SfcIsFileProtected(  [in] HANDLE  RpcHandle,  [in] LPCWSTR ProtFileName);

Parameters

[in] RpcHandle

This parameter must beNULL.

[in] ProtFileName

The name of the file.

Return value

If the file is protected, the return value is a nonzero value.

If the file is not protected, the return value is zero.

Requirements

RequirementValue
Minimum supported clientWindows XP [desktop apps only]
Minimum supported serverWindows Server 2003 [desktop apps only]
Target PlatformWindows
Headersfc.h
LibrarySfc.lib
DLLSfc.dll

See also

SfcIsKeyProtected


Feedback

Was this page helpful?

YesNo

In this article

Was this page helpful?

YesNo