System.Win.Registry.TRegistry.GetDataSize
Delphi
function GetDataSize(const ValueName: string): Integer;
C++
int __fastcall GetDataSize(const System::UnicodeString ValueName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistry |
Description
Returns the size, in bytes, of a specified data value associated with the current key.
Call GetDataSize to determine the size, in bytes, of a data value associated with the current key. ValueName is a string containing the name of the data value to query.
On success, GetDataSize returns the size of the data value. On failure, GetDataSize returns -1.
Note: If the data value is a string, GetDataSize returns the size of the data value and one extra byte for the terminating null character.