Главная страница
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.013 c
14-53199
VictorT
2003-01-31 12:04
2003.02.17
Патч к FARу


1-52814
Zergling
2003-02-07 09:59
2003.02.17
Регистрация ActiveX


1-52923
Barman
2003-02-06 06:42
2003.02.17
Excel


3-52746
Dimich1978
2003-01-30 16:00
2003.02.17
Помогите не пойму в чем дело с БД творится?


3-52718
Ina
2003-01-30 08:19
2003.02.17
отключить индекс FoxPro 2.6