SfcIsFileProtected function (sfc.h)
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 be NULL.
[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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | sfc.h |
| Library | Sfc.lib |
| DLL | Sfc.dll |
See also
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for