Главная страница
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-53028
Behemoth
2003-02-10 14:00
2003.02.17
Как сделать, чтобы вид курсора был неизменен?


8-53123
vts
2002-11-04 08:20
2003.02.17
как можно узнать параметры из AVi ?


7-53314
Zmey
2002-12-14 17:31
2003.02.17
A call on OS function failed


7-53300
SZap
2002-12-13 14:00
2003.02.17
Параметры HDD


1-52986
REA
2003-02-10 12:22
2003.02.17
Reset