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

Вниз

Как создать в реестре параметр Dword   Найти похожие ветки 

 
maxim2 ©   (2002-12-16 06:11) [0]

Привет всем!
Вот как создать строковой я знаю а как Dword ?


 
RV ©   (2002-12-16 10:51) [1]

WriteInteger


 
drin ©   (2002-12-18 03:12) [2]


Uses
Windows;

procedure WriteDWord(rootKey: hKey; subkey: string; ValueName: string; Value: DWord);
Var
Key: hKey;
DataType: integer;
begin
if RegOpenKey(rootKey, PChar(subkey), Key)<>ERROR_SUCCESS
then RegCreateKey(rootKey, PChar(subkey), Key);
DataType:=REG_DWORD;
RegSetValueEx(key, PChar(ValueName), 0, DataType, PChar(@Value), SizeOf(DWORD));
RegCloseKey(Key);
end;

begin
.....
WriteDWord(HKEY_LOCAL_MACHINE, "SOFTWARE\MyProg", "Number", 12);
.....
end.



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

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

Наверх




Память: 0.46 MB
Время: 0.021 c
1-52896
harismatik
2003-02-08 11:01
2003.02.17
Про дерево


4-53338
bobnew
2003-01-08 14:45
2003.02.17
attach


7-53316
der
2002-12-15 17:24
2003.02.17
shift+page_down в dbgrid


14-53249
Broot
2003-02-01 07:50
2003.02.17
Delphi5 standart


6-53152
atmospheric
2002-12-26 18:49
2003.02.17
ClientSocket