Solved

Updating registry

Posted on 1999-01-19
4
157 Views
Last Modified: 2010-04-06
Hi everyone... is there another way to update the Windows 95/98 registry from within Delphi 4, without either restarting the system or closing and reopening the Explorer. I thought about something like a "flush" command, like it exists for the DOS program SMARTDRV.EXE. Any suggestions?
0
Comment
Question by:jonnyfive
  • 2
4 Comments
 
LVL 5

Expert Comment

by:heathprovost
ID: 1362415
I am not sure I follow.  Registry changes are realtime - once you change something it is changed....  Now there are changes you can make that are only read during system initialization (they require a reboot).  Is this what you mean?  Please clarify further.

Heath
0
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
ID: 1362416
Hi JonnyFive,

I think you mean this one:

  RegFlushKey(HKEY_LOCAL_MACHINE);  // HKEY_CLASSES_ROOT is a part of this key
  RegFlushKey(HKEY_USERS);  // HKEY_CURRENT_USER is a part of the key

Right?

Regards, Madshi.
0
 

Author Comment

by:jonnyfive
ID: 1362417
I acutally found the API function myself after the submission :-)) But you earned your points for this prompt answer.
For heathprovost: Changes are not 100% made at real time. If you try to install Word for example and you export the registry via REGEDIT before you restart, you will see that the registry after the restart is different from the one you just exported.

Kind regards, Jonny Five...
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362418
Hi Jonny Five,

that's fair, that you give me the points, though you found out the solution yourself. Thank you...  :-)

Regards, Madshi.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now