Quick Find: Search for:

 Total Access Components
Control Tour

Return to Components Home
 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

About Box

AVI (Video)

Bitmap Effects

Border
Browse for Folder New!
CD Player
Clipboard
Clock
Common Dialogs
Date Time Picker New!
Digital Display
Enhanced Button
Gauge
Icon Menu
INI File
Marquee
Notes
Popup Menu
Progress Meter
Registry
Resize
Slider
Spin Button
Splitter
System Info
Tab Strip
Text Effects
Timer
Wave
 

 

Total Access Components Tour: Registry

The Windows registry is a structured database of settings that is intended to replace the text INI file. It is used to store setting and configuration information for the Windows operating system, and for the applications that run under Windows.

The Registry control allows you to work with registry values by reading and writing data.

To use the Registry control, you need a basic understanding of the Windows Registry. In 32-bit versions of Windows, such as Windows 95, the registry is organized in various top level (or root) keys. Each of these root keys contains sub-keys, which can themselves contain sub-keys and values. Each value in a key has data associated with it. A value is identified by three pieces of information: the root key, the key name, and the value name.

Using the Registry Control

Since Windows determines the location of the registry, you do not need to specify the name or location of the registry when working with the Registry control. There are no properties for this control, only methods.

The following root keys are available:

Key Name

Value

Constant

HKEY_CLASSES_ROOT

2147483648

TacmReghKeyClassesRoot

HKEY_CURRENT_CONFIG

2147483653

TacmReghKeyCurrentConfig

HKEY_CURRENT_USER

2147483649

TacmReghKeyCurrentUser

HKEY_DYN_DATA

2147483654

TacmReghKeyDynData

HKEY_LOCAL_MACHINE

2147483650

TacmReghKeyLocalMachine

HKEY_PERFORMANCE_DATA

2147483652

TacmReghKeyPerformanceData

HKEY_USERS

2147483651

TacmReghKeyUsers

Using the Register Method

The Register method is provided for applications that need to register OLE servers. You can use this method to easily register an OLE server by providing the file name of the server. The control automatically updates the registry with all appropriate entries.

Registry Methods

Name

Description

DeleteKey

Deletes the specified key.

DeleteKeyValue

Deletes a key value.

GetSubkeyCount

Returns the number of child keys of the specified key.

GetSubkeyString

Returns a given sub-key string.

GetKeyValue

Retrieves the data associated with the key value.

GetValueCount

Returns the number of values for the specified key.

GetValueString

Returns a given value string.

Register

Registers the specified library.

SetKeyValue

Sets the data associated with a key value.

Questions  l   Web questions: Webmaster   l   Copyright © 2008 FMS, Inc.

Celebrating 21 Years of Software Excellence