Determines whether the specified file is protected
#include <WinAPIFiles.au3>
_WinAPI_SfcIsFileProtected ( $sFilePath )
$sFilePath | The name of the file to test. |
True: | the file is protected. |
False: | the file is not protected. |
Search SfcIsFileProtected in MSDN Library.
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
MsgBox($MB_SYSTEMMODAL, "Title", 'File Protection Status = ' & _WinAPI_SfcIsFileProtected(@WindowsDir & "\explorer.exe"))