woeiwoei 发表于 2010-4-5 20:32:54

丢失脚本维度![已解决]

本帖最后由 woeiwoei 于 2010-4-5 20:55 编辑

#include <LocalSecurityAuthority.au3>
If Not IsDeclared("KEY_READ") Then $KEY_READ = 0x20019
If Not IsDeclared("KEY_ALL_ACCESS") Then $KEY_ALL_ACCESS = 0xF003F
If Not IsDeclared("HKEY_CLASSES_ROOT") Then $HKEY_CLASSES_ROOT= 0x80000000
Dim $aAceList = ["Administrators", $KEY_ALL_ACCESS, $GRANT_ACCESS, $SUB_CONTAINERS_AND_OBJECTS_INHERIT]
$sSubKey = "CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\command"
$iResult = _RegSetKeySecurityDacl($HKEY_CLASSES_ROOT, $sSubKey, $aAceList)
大虾们看一下啊。:face (36):
这样就对的#include <LocalSecurityAuthority.au3>
If Not IsDeclared("KEY_READ") Then $KEY_READ = 0x20019
If Not IsDeclared("KEY_ALL_ACCESS") Then $KEY_ALL_ACCESS = 0xF003F
If Not IsDeclared("HKEY_CLASSES_ROOT") Then $HKEY_CLASSES_ROOT= 0x80000000
Dim $aAceList = [["Administrators", $KEY_ALL_ACCESS, $GRANT_ACCESS, $SUB_CONTAINERS_AND_OBJECTS_INHERIT],["Everyone", $KEY_READ, $GRANT_ACCESS, $SUB_CONTAINERS_AND_OBJECTS_INHERIT]]
$sSubKey = "CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\command"
$iResult = _RegSetKeySecurityDacl($HKEY_CLASSES_ROOT, $sSubKey, $aAceList)为什么留一个用户就报错呢? 不明白那个【2】【4】的关系··:face (9):

afan 发表于 2010-4-5 20:34:11

就是丢失脚本维度啊

woeiwoei 发表于 2010-4-5 20:37:36

就是丢失脚本维度啊
afan 发表于 2010-4-5 20:34 http://www.autoitx.com/images/common/back.gif


    该如何声明呢?维度 ?afan~~能给个例子么?

afan 发表于 2010-4-5 20:40:24

回复 3# woeiwoei


Dim $aAceList = [["Administrators", $KEY_ALL_ACCESS, $GRANT_ACCESS, $SUB_CONTAINERS_AND_OBJECTS_INHERIT], ]
页: [1]
查看完整版本: 丢失脚本维度![已解决]