Function Reference


_WinAPI_SfcIsFileProtected

Determines whether the specified file is protected

#include <WinAPIFiles.au3>
_WinAPI_SfcIsFileProtected ( $sFilePath )

Parameters

$sFilePath The name of the file to test.

Return Value

True: the file is protected.
False: the file is not protected.

See Also

Search SfcIsFileProtected in MSDN Library.

Example

#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>

MsgBox($MB_SYSTEMMODAL, "Title", 'File Protection Status = ' & _WinAPI_SfcIsFileProtected(@WindowsDir & "\explorer.exe"))