FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour registry
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

registry

Posted: Mon Sep 29, 2008 08:19 AM
to save a variable on registry I made

Key:="Software\Microsoft\Windows\CurrentVersion\Policies\System"
 Name:="NoDispCPL"
 valore:=1
 oReg := TReg32():New(HKEY_CURRENT_USER, Key)
 oReg:Set(Name,valore)


and this is ok but on a pc have windowx xp it not found the key

System but only Explorer key(Key:="Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")

How I can make to create the new key ?
Best Regards, Saludos



Falconi Silvio
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM

registry

Posted: Mon Sep 29, 2008 11:56 AM
How I must make to see if this key there is ...
because when I create

Key:="Software\Microsoft\Windows\CurrentVersion\Policies\System" 
 Name:="NoDispCPL" 
 valore:=1 
 oReg := TReg32():New(HKEY_CURRENT_USER, Key) 
 oReg:Set(Name,valore)


it not send me any errors
but system not was into
Best Regards, Saludos



Falconi Silvio

Continue the discussion