RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistryIniFile.WriteBinaryStream Method

Writes a binary value to the registry.

Pascal
procedure WriteBinaryStream(const Section: string; const Name: string; Value: TStream); override;
C++
virtual __fastcall WriteBinaryStream(const AnsiString Section, const AnsiString Name, TStream Value);

Call WriteBinaryStream to write a binary value from a specified stream to a specified key in the registry. WriteBinaryStream writes from the current position in the stream to the end. 

Section is the key for the section that contains the subkey where the binary data should be written. 

Name is the subkey under which the binary data is stored. 

Value is a stream from which the binary value can be read.

Note: Attempting to write a value to a nonexistent section or attempting to write data to a nonexistent key are not errors. In these cases, WriteBinaryStream creates the section and key and sets its initial value to the stream's data.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!