Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.03.14;
Скачать: CL | DM;

Вниз

TRegIniFile (реестр Windows)   Найти похожие ветки 

 
_SnAke_ ©   (2002-01-15 12:31) [0]

У меня такой вопрос: как попасть в ключ рееста отличный от HKEY_CURRENT_USER, например в HKEY_CLASSES_ROOT. При использовании TRegIniFile он меня закидывает в HKEY_CURRENT_USER


 
Севостьянов Игорь ©   (2002-01-15 20:02) [1]

1.TRegIniFile является наследником TRegistry
Посмотри файл registry.pas - это не для любитей читать Help

2. Очень просто есть у него свой-во наследованное от TRegistry
(Help)RootKey
Вот ему и присвой нужный тебе

Вот константы

HKEY_CLASSES_ROOT = DWORD($80000000);
HKEY_CURRENT_USER = DWORD($80000001);
HKEY_LOCAL_MACHINE = DWORD($80000002);
HKEY_USERS = DWORD($80000003);
HKEY_PERFORMANCE_DATA = DWORD($80000004);
HKEY_CURRENT_CONFIG = DWORD($80000005);
HKEY_DYN_DATA = DWORD($80000006);


P.S.
TRegIniFile presents a simple interface to the system registry, hiding the need to know about the underlying structure of the registry. TRegIniFile acts as a helper object to TRegistryIniFile, which descends from TCustomIniFile (and is therefore more widely compatible with other types of INI file classes).

TRegIniFile enables handling the Windows 95/NT system registry as if it were a Windows 3.x INI file. Instead of processing an INI file, however, TRegIniFile reads from and writes to the system registry.

Although TRegIniFile descends from TRegistry, it adds the properties and methods used by a TIniFile object. The FileName passed to a TRegIniFile object becomes a subkey under the system registry’s root key (HKEY_CURRENT_USER by default). What corresponds to a section in an INI file is treated as a key in the system registry, and what corresponds to data entries under a section in an INI file are treated as data values under a key in the system registry.



Страницы: 1 вся ветка

Текущий архив: 2002.03.14;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.01 c
1-43070
Alibaba
2002-02-27 10:44
2002.03.14
TRegValue


1-43016
Glosariy
2002-03-01 04:11
2002.03.14
ASCII КОДЫ


7-43199
Mr.Death
2001-12-01 14:15
2002.03.14
Как под Win2000/XP узнать handle дочернего окна Windows Task Manager?


3-42983
Pavel_s
2002-02-16 13:16
2002.03.14
Import from Access to Interbase


14-43156
Hecker
2002-01-18 18:22
2002.03.14
Нужна помощь! (это очень серьёзно!)