Solved

Updating registry

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 230
Magic Software info 18 105
delphi parse string to params 3 83
Delphi...Split view - idea? 1 0
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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