?
Solved

Read Registry With D1

Posted on 1997-10-14
2
Medium Priority
?
197 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
[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 Comments
 

Accepted Solution

by:
AllenC earned 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 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