Вниз
Скачать: 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.01 c
3-52788
S
2003-01-31 14:31
2003.02.17
Тупой вопрос!


4-53329
AlexRu
2003-01-05 13:55
2003.02.17
Какое значение у константы FOF_NORECURSION ?


14-53213
Труп Васи Доброго
2003-01-31 08:54
2003.02.17
Как пользоваться Delphi?


3-52704
me2
2003-01-29 12:33
2003.02.17
Добавление столбцов к гриду в On-Line


7-53293
Y
2002-12-16 13:32
2003.02.17
Использование служб в Delphi




   Наверх