Solved

Updating registry

Posted on 1999-01-19
4
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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