Solved

Updating registry

Posted on 1999-01-19
4
154 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

14 Experts available now in Live!

Get 1:1 Help Now