System.Win.Registry.TRegistry.GetData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetData(const Name: string; Buffer: Pointer;  BufSize: Integer; var RegData: TRegDataType): Integer;

C++

int __fastcall GetData(const System::UnicodeString Name, void * Buffer, int BufSize, TRegDataType &RegData);

Properties

Type Visibility Source Unit Parent
function protected
System.Win.Registry.pas
System.Win.Registry.hpp
System.Win.Registry TRegistry

Description

Reads data from a registry entry in the current key.

The GetData method reads the data from the registry entry with the name Name and writes it to the memory location pointed to by the Buffer parameter.

BufSize is the size of the Buffer.

RegData will be set at the end of the function to the type of data that the entry with the name Name is. This can be unknown, string, integer, or binary.

The function returns the size of the written data.

See Also