Function Reference


Determines whether the specified registry key is protected

#include <WinAPIReg.au3>
_WinAPI_SfcIsKeyProtected ( $hKey [, $sSubKey = Default [, $iFlag = 0]] )


$hKey Handle to the root registry key, it must be one of the following predefined keys:
$sSubKey [optional] The name of the key to test. This key must be a subkey of the key identified by the $hKey parameter.
If this parameter is not specified (Default), the function only checks whether the root registry key is protected.
$iFlag [optional] The flag that specifies the alternate registry view that should be used by applications that run on 64-bit Windows.
This flag is ignored on the x86 platform. It can be one of the following values:

Return Value

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


This function requires Windows Vista or later.

See Also

Search SfcIsKeyProtected in MSDN Library.