Retrieves a binary value from a specified data value associated with the current key. function ReadBinaryData(const Name: String; var Buffer; BufSize: Integer): Integer;DescriptionCall ReadBinaryData to read a binary value from a specified data value associated with the current key. Name is the name of the data value to read. Buffer is the application variable into which to read the registry data. Buffer must be large enough to hold all of the data returned. BufSize specifies the size of Buffer.If successful, ReadBinaryData returns the requested data. If the Registry entry contains a known type (such as a string), an exception is raised.Note: Binary data is typically a record. It might also be an icon or a bitmap although Microsoft recommends against storing graphics objects in the registry for performance reasons.
解决方案 »
- delphi怎么读取iDispatch类型的记录集,在线等
- SelectDirectory问题?
- delphi如何调用Oracle的存储过程
- delphi6中精确定位图像的打印位置
- 对于stdcall的函数,在传递一个word型的参数时,这个参数在堆栈中保存时占2个字节还是4个字节?
- Delphi 截取被遮挡窗口图片
- 相差太远!!!!散分
- 我应不应该选择某一个行业来做?
- 请教如何才能象Photoshop那样用delphi生成一条完整的颜色带
- 总位高手的心血在此被完全否认:http://202.102.230.155/secrecy/chcrack/chinacrack9.htm
- 望report高手指导!!!
- 安装构件是否一定需要有该构件包含的单元源代码文件*.pas?
var
reg:tregister;
buf:string;
begin
reg.create;
... //一般的设置(rootkey等)
reg.readbinarydata('mykey',buf,256);
showmessage(buf);
end;
var
LoopCounter:Integer;
begin
Result := 0;
for LoopCounter := 1 to Length(Instr) do
Result := Result + Trunc( StrToInt(InStr[LoopCounter]) *
Power(2, Length(InStr)-LoopCounter ) );
end;
var
reg:tregister;
buf:string;
begin
reg.create;
... //一般的设置(rootkey等)
reg.readbinarydata('mykey',buf,256);
showmessage(buf);
end; reg.readbinarydata('mykey',buf,256);
出错了,说明无效的数据类型,