Solved

Tregistry

Posted on 1998-09-21
2
284 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

Independent Software Vendors: 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

Suggested Solutions

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

733 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