Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
3-52776
Толян
2003-01-31 10:36
2003.02.17
Как работает TField.Value???


3-52734
BlackTiger
2003-01-28 14:12
2003.02.17
Как очистить от колонок cxGrid (DevExpress)?


3-52775
Gaber
2003-01-30 19:22
2003.02.17
IB компоненты


1-52839
Deadly Poison
2003-02-06 18:53
2003.02.17
Битовые карты


1-52912
V-A-V
2003-02-06 12:42
2003.02.17
Символ разделитель




   Наверх