Solved

Tregistry

Posted on 1998-09-21
2
285 Views
Last Modified: 2010-04-06
reading the binary data in the registry
0
Comment
Question by:coucou
[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
2 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1340460
Here is an example......

uses Registry;

procedure TForm1.Button1Click(Sender: TObject);
var
  r : TRegistry;
  Buf : array [0..15] of Byte;
   i : integer;
begin
  r := TRegistry.Create;
  with r do
  try
     OpenKey('\Software\Microsoft\ActiveMovie\Control\Media Player', False);
      ReadBinaryData('WindowPosition',Buf, SizeOf(Buf));
      Caption := '';
      for i := 0 to 15 do
         Caption := Caption + IntToStr(Buf[i]);
   finally
      r.free;
   end;
end;

Regards,
Viktor Ivanov
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1340461
What are you planning to do ???accept or reject???

//Viktor Ivanov
0

Featured Post

Industry Leaders: 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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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