System.Win.Registry.TRegistryIniFile.WriteBinaryStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteBinaryStream(const Section, Name: string; Value: TStream); override;

C++

virtual void __fastcall WriteBinaryStream(const System::UnicodeString Section, const System::UnicodeString Name, System::Classes::TStream* Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistryIniFile

Description

Writes a binary value to the registry.

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.

See Also