function ReadBinary(const Name: string;
  const Registry: TRegistry): TByteDynArray;
var
  RDT: TRegDataType;
  Size: Integer;
begin
  Size := Registry.GetDataSize(Name);
  SetLength(Result, Size);
  Registry.ReadBinaryData(Name, PByte(Result)^, Size);
end; 

posted on 2011-01-15 08:11  fyen  阅读(304)  评论(0编辑  收藏  举报