Delphi's Tregistry registration formwork detailed
● GetDataInfo method Function GetDataInfo (const ValueName: String; Var Value: TRegDataInfo): Boolean; TregDataType = (rdunknown, rdstring, rdexpandstring, rdexpandstring, rdinterger, rdbinary); TregDataInfo = record Regdata: TRegDataType; Data Type dataSize: integer; Data Size EndValuename: Data Value Name VALUE: Returns the information of the data, such as the RDString and RDExpandString type, including the empty end character of the string unlike. If you successfully return true, failure returns false, and the value of value is Zerosrdexpandstring: is a string containing environment variables; such as "% PATH%". ● CREATEKEY method Function CreateKey: Boolena; Newly built a key, Key can be absolute or relative names, absolutely named backslash "/", relative name is new to create a new key Sub key. No value newly created. Successfully returns true, otherwise returns false, if the key already does not produce the effect. ● DeleteKey method function deleteKey: boolean; Delete a key and associated data, will be deleted in Win95 neutrics, the NT neutron must be deleted one by one. ● DeleteValue method Function deleteValue (const name: string): boolean; Delete a data value Name specified in the current button. ● getDataSize method function getDataSize (const value): integer; Returns a specified value VALUENAME data in the current button. ● getDataType method function getDataType (string): TregDataType; Returns a type of specified value VALUENAME data in the current button. ● getKeyInfo method function getKeyInfo (var value: TregkeyInfo): boolean; returns the information of the current key, in the Value. TregKeyinfo = Record MaxSubKeylen: Integer; the longest value of the child name (bytes) Numvalues: integer; key value maxValuelen; the length of the longest key value, Filetime: TFileTime; last change time End; ● getKeyNames method Procedure getKeyNames (Strings: Tsrtings); Returns the name list string of all child keys of the current key. ● getValuenamesProcedure getValuenames (strings: tstrings); Returns a list string of all key value names of the current key. ● Hassubkeys method function hasubkeys: boolean; determine if the current button has a subkey, there is a returning true, otherwise returns false. ● Keyexists method function keyexists (const key: string): boolean; Determine if the specified button exists. ● LoadKey method Function loadKey (const key, filenmae: string): boolean; Add a registration information in the root button to the sub-key, the file registration information contains the data value name, sub-keys, and data.