B
bluehouse
Unregistered / Unconfirmed
GUEST, unregistred user!
对于注册表:若该二进制键值第一个值为"50"(一共是50 01 00 20),则checkbox4.checked:=true,下面代码怎么错了,不显示True
reg.RootKey:=HKEY_CLASSES_ROOT;
if reg.OpenKey('CLSID/{645FF040-5081-101B-9F08-00AA002F954E}/ShellFolder',true)then
reg.ReadBinaryData('Attributes',buf,4);
if Buf[1]=50 then
begin
checkbox4.checked:=true;
end;
end
reg.RootKey:=HKEY_CLASSES_ROOT;
if reg.OpenKey('CLSID/{645FF040-5081-101B-9F08-00AA002F954E}/ShellFolder',true)then
reg.ReadBinaryData('Attributes',buf,4);
if Buf[1]=50 then
begin
checkbox4.checked:=true;
end;
end