Solved

Read Registry With D1

Posted on 1997-10-14
2
190 Views
Last Modified: 2010-04-04
Reading the registry is simple with Delphi 3.  How do I do
this with Delphi 1?
0
Comment
Question by:jexd99
2 Comments
 

Accepted Solution

by:
AllenC earned 50 total points
ID: 1347592
You can find it in the Win 3.x API help file.

RegCreateKey      Creates a specified key
RegDeleteKey      Deletes a specified key
RegEnumKey      Enumerates the subkeys of a specified key
RegOpenKey      Opens a specified key
RegQueryValue      Retrieves the text string for a specified key
RegSetValue      Associates a text string with a specified key

function RegSetValue(Key: HKey; SubKey: PChar; ValType: Longint; Value: PChar; cb: Longint): Longint;
Remember to include the ShellAPI unit!

Here's an example:
uses ShellAPI;

begin
  if RegSetValue(HKEY_CLASSES_ROOT, '.wav\(Default)', REG_SZ, 'SoundRec', SizeOf('SoundRec')) <> ERROR_SUCCESS then Error;
end.

Good Luck

http://tcp.home.ml.org/
0
 

Author Comment

by:jexd99
ID: 1347593
Thanks Allen! :)

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

948 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

22 Experts available now in Live!

Get 1:1 Help Now