Security_DenyRegAccess
Description
Section titled “Description”Denies a Trustee (user or group) all access (Full Control) to a Registry key.
Syntax
Section titled “Syntax”Security_DenyRegAccess(sHandle, sKey,sTrustee) As Boolean
Parameters
Section titled “Parameters”sHandle (String)
Section titled “sHandle (String)”Root key: HKLM, HKCU, HKCR, HKU or HKCC. The long names, such as HKEY_LOCAL_MACHINE, also work.
sKey (String)
Section titled “sKey (String)”Path of the subkey, for example Software\CapaInstaller
sTrustee (String)
Section titled “sTrustee (String)”A trustee is a user or group. The trustee can be a name in the format Domain\User or a well-known SID (security identifier). Some built-in group names, such as Power Users, are localized, so use the SID for those.
Return value
Section titled “Return value”The function returns False if sHandle isn’t valid, or if SetACL can’t be found. See Security functions.
Example
Section titled “Example”If bStatus Then bStatus = Security_DenyRegAccess("HKLM", "Software\CapaInstaller", "S-1-5-4")Related functions
Section titled “Related functions”Security functions Security_SetRegPermissions Security_RevokeRegPermissions Constants Package Property Variables