Determines whether the specified file is protected. Applications should avoid replacing protected system files.
Syntax
BOOL SfcIsFileProtected(
__in HANDLE RpcHandle,
__in LPCWSTR ProtFileName
);
Parameters
- RpcHandle [in]
-
This parameter must be NULL.
- ProtFileName [in]
-
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
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| Header | Sfc.h |
| Library | Sfc.lib |
| DLL | Sfc.dll |
See Also
- SfcIsKeyProtected
Build date: 7/30/2009