Главная страница
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.013 c
6-43128
SemFLY
2001-12-26 22:02
2002.03.14
Как вытащить символ из посланного сообщения ? TServerSocket - TClientCosket


1-43083
KvORubin
2002-02-26 15:42
2002.03.14
TRichEdit - ПОМОГИТЕ !!!


3-42906
dar
2002-02-13 07:46
2002.03.14
Access и Delphi


1-43021
wonder_boy
2002-02-26 12:03
2002.03.14
Декомпиляция


3-42920
volph
2002-02-13 18:08
2002.03.14
Как сделать чтобы в DBGrid данные выводились не сверху вниз, а