D�termine si le fichier sp�cifi� est prot�g�
#include <WinAPIFiles.au3>
_WinAPI_SfcIsFileProtected ( $sFilePath )
$sFilePath | Le nom du fichier � tester. |
True: | Le fichier est prot�g�. |
False: | Le fichier n'est pas prot�g�. |
Consultez SfcIsFileProtected dans la librairie MSDN.
#include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> MsgBox($MB_SYSTEMMODAL, "Explorer.exe", 'Statut de protection du fichier = ' & _WinAPI_SfcIsFileProtected(@WindowsDir & "\explorer.exe"))