Главная страница
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.007 c
4-43222
raiks
2002-01-14 12:25
2002.03.14
Как отследить попытку обращения к файлу?


14-43168
Yuraz
2002-01-31 09:58
2002.03.14
Люди, кто нить встречался ли с отсылкой e-mail на ICQ?


7-43206
Alexander Beliy
2001-12-08 02:03
2002.03.14
Вопрос


14-43151
Геральт
2002-01-29 22:03
2002.03.14
Вопрос по работе с cards.dll


1-43109
Dimedrol
2002-02-28 10:25
2002.03.14
Splitter - еще раз, please...