System.Win.Registry.TRegistry.GetBaseKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetBaseKey(Relative: Boolean): HKey;

C++

HKEY __fastcall GetBaseKey(bool Relative);

Properties

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

Description

Returns the base key.

The GetBaseKey method returns RootKey if Relative is false, and CurrentKey otherwise.

Note: GetBaseKey is used internally when calling Windows API functions to determine whether they succeeded or not.

See Also