Главная страница
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
3-42935
sniknik
2002-02-14 11:36
2002.03.14
Связь между базами. dbf(dBase) к (mdb) Access


3-42939
Саша
2002-02-06 11:47
2002.03.14
Как записать значение в BLOB поле


1-43072
forrest1
2002-02-21 16:37
2002.03.14
Почему нажатие Tab в DBGrid переводит курсор на следующую запись?


6-43122
Olfi
2001-12-23 15:57
2002.03.14
Привет народ! Кто-нибудь знеает, как можно соединить модемы и передать чего-нибудь по нему?


7-43197
Darker2
2001-10-28 07:54
2002.03.14
COM Port. Помощь в начинании.