F free13579 Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-28 #1 怎样读写REG_MULTI_SZ类型的注册表项目?急啊!
L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2001-11-28 #2 TRegistry是不行的。 直接用RegQueryValueEx
D dreamother Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-05 #4 RegInfo := tRegistry.Create; try RegInfo.RootKey := HKEY_LOCAL_MACHINE; if RegInfpenKey('SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/', False) then begin WriteString := 'abc' + #0#0; WriteError := RegSetValueEx(RegInfo.CurrentKey, PChar('HEX1500'), 0, REG_MULTI_SZ, @WriteString[1], Length(WriteString)); if WriteError <> ERROR_SUCCESS then begin ErrorString := ErrorString + '信息修改出错1!'; end; end; finally reginfo.Free; end;
RegInfo := tRegistry.Create; try RegInfo.RootKey := HKEY_LOCAL_MACHINE; if RegInfpenKey('SYSTEM/CurrentControlSet/Services/Tcpip/Parameters/Interfaces/', False) then begin WriteString := 'abc' + #0#0; WriteError := RegSetValueEx(RegInfo.CurrentKey, PChar('HEX1500'), 0, REG_MULTI_SZ, @WriteString[1], Length(WriteString)); if WriteError <> ERROR_SUCCESS then begin ErrorString := ErrorString + '信息修改出错1!'; end; end; finally reginfo.Free; end;
D dreamother Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-05 #5 这是写REG_MULTI_SZ类型数据的方法。