- Apple iPhone Air - almacsutka
- Honor Magic6 Pro - kör közepén számok
- Apple Watch Sport - ez is csak egy okosóra
- Nagyon különleges lesz a Realme GT 8 Pro
- iPhone topik
- Samsung Galaxy S10 és S10+ duplateszt
- Mobil flották
- Ez is egy kafa utólagos fejegység - Carpodgo T3 Pro
- Samsung Galaxy Watch6 Classic - tekerd!
- Xiaomi 14T - nem baj, hogy nem Pro
Új hozzászólás Aktív témák
-
pIIrash
tag
unit un_RMethods;
interface
uses Windows, SysUtils, Registry;
const
CurVer = 'SOFTWARE\Microsoft\Windows\CurrentVersion\';
R_UninstPrg = CurVer + 'Uninstall';
R_RUN = CurVer + 'Run';
procedure SetStartWithWindows(AppName, AppTitle: string);
procedure SetRegistryValue(RootKey: HKEY; Key, KeyName, Value, regType: string);
implementation
procedure SetRegistryValue(RootKey: HKEY; Key, KeyName, Value, regType: string);
var
Registry: TRegistry;
begin
Registry := TRegistry.Create;
with Registry do
begin
try
RootKey := RootKey;
if OpenKey(Key, False) then
begin
if regType = 'STR' then WriteString(KeyName, Value);
if regType = 'BOL' then WriteBool(KeyName, StrToBool(Value));
if regType = 'INT' then WriteInteger(KeyName, StrToInt(Value));
end;
finally
Free;
end;
end;
end;
function GetRegistryValue(RootKey: HKEY; Key, Value, regType: string): string;
var
Registry: TRegistry;
TempValue: string;
begin
Registry := TRegistry.Create;
with Registry do
begin
try
RootKey := RootKey;
if OpenKey(Key, False) then
begin
if regType = 'STR' then TempValue := Registry.ReadString(Value);
if regType = 'BOL' then TempValue := BoolToStr(ReadBool(Value));
if regType = 'INT' then TempValue := IntToStr(ReadInteger(Value));
end;
finally
Free;
end;
end;
Result := TempValue;
end;
pl: beírás:
procedure SetStartWithWindows(AppName, AppTitle: string);
begin
SetRegistryValue(HKEY_LOCAL_MACHINE, R_RUN, <Program elérési útja>, <Program neve>, 'STR');
end;
pl: kiolvasás:
InstallPath := GetRegistryValue(HKEY_LOCAL_MACHINE, SOFTWARE\<A program neve>\, A kulcs amiből olvasni akarsz);
Remélem segít!
[Szerkesztve]
Új hozzászólás Aktív témák
- Samsung Galaxy S24 Ultra 12/256GB Újszerű,Kártyafüggetlen,Dobozos,Tartozékaival. 1 Év Garanciával!
- újszerű iPhone 16 Pro 128GB natural titanium natúr titán független Apple 1 év garancia
- Samsung Galaxy S23 Ultra 8/256GB Megkímélt,Kártyafüggetlen 1cm karc a kijelzőn. 1 Év garanciával!
- Apple iPhone 13 128GB 100% Akku Újszerű,Kártyafüggetlen,Dobozos,Tartozékaival. 1 Év garanciával!
- újszerű MacBook Air M3 16GB 256GB SSD midnight éjfekete Apple magyar garancia
- Apple iPhone 11 Pro / 64GB / Kártyafüggetlen / 12Hó Garancia / 100% akku
- BESZÁMÍTÁS! ASUS H87I-PLUS H87 chipset alaplap garanciával hibátlan működéssel
- iKing.Hu - HONOR 400 Lite 5G Velvet Grey Vékony, könnyű, AI-kameragomb 8/256 GB- 2027. 07. 01
- Új elekrtomos rollerek 2/3 áron és e-bike dobozban, 1 év garanciával:
- BESZÁMÍTÁS! ASUS B450 R7 5700X 32GB DDR4 512GB SSD RTX 4060Ti 16GB Zalman Z1 Plus Cooler Master 650W
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: CAMERA-PRO Hungary Kft.
Város: Budapest