![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как создать в реестре параметр Dword [D6, NT4, Win2k, WinXP]
maxim2 © (2002-12-16 06:11:00)Привет всем!
Вот как создать строковой я знаю а как Dword ?
drin (2002-12-18 03:12:00) [1]
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.
RV (2002-12-16 10:51:00) [2]WriteInteger