Updating The Registry

Please discuss general Delphi programming topics here.

Updating The Registry

Postby sepehr » January 1st, 2007, 9:37 am

i've posted this in couple of forums and searched alot but didn't comeup with much info

as u know for registry to take effects it needs windows to be restarted and
delphi offers some APIs that does sth and updates registry automatically like setting a wallpaper,but i can't get to update registry after creating a
"NoDrives" key in
Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
then changing it to some values to hide it
more info about this hint:
http://www.windowsnetworking.com/kbase/WindowsTips/WindowsNT/RegistryTips/IEandExplorer/HidelocaldrivefromMyComputerinWindowsNTWindows2000Explorer.html

now after all of this i can't update my registry without restarting and that's a BIG drawback for my program
I would Be So Gratefull of Some Hand ;)
User avatar
sepehr
Active Member
Active Member
 
Posts: 23
Joined: October 4th, 2006, 6:38 am
Location: Karaj

Postby Johnny_Bit » January 1st, 2007, 8:35 pm

you need to send a message to explorer to update config
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby sepehr » January 2nd, 2007, 6:19 am

i would be appreciated of a code example
User avatar
sepehr
Active Member
Active Member
 
Posts: 23
Joined: October 4th, 2006, 6:38 am
Location: Karaj

Postby sepehr » January 2nd, 2007, 9:31 am

Johnny_Bit wrote:you need to send a message to explorer to update config


i tried this one but didn't work out
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nil, nil);
i guess i'm using the wrong parameters
any ideas?
User avatar
sepehr
Active Member
Active Member
 
Posts: 23
Joined: October 4th, 2006, 6:38 am
Location: Karaj


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron