Главная страница
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.009 c
1-42993
ne
2002-02-28 12:20
2002.03.14
окно типа пенели пуск


1-43056
kirill2000
2002-02-27 02:32
2002.03.14
Delphi6


3-42963
Ulikoff
2002-02-15 10:48
2002.03.14
Настройка БД по сети


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


4-43212
- Andrew -
2002-01-15 14:40
2002.03.14
Как отловить хэндл меню при его активации в