Re: REG_BINARY



On Tue, 04 Oct 2005 13:27:01 +1300, Nicholas Sherlock
<n_sherlock@xxxxxxxxxxx> wrote:

00 00 00 00 80 e0 e1 20

That is what the registry entry looks like.

Every time I have tried to read this (using ReadBinaryData), I get
zero as a result, which was why I posted my message last night. Sorry
I failed to mention it, it slipped my mind.

Thanks for the help though, Nicholas. But I think it's something more.
Basically, the value that is being stored is the number of times you
have won the game (it's a little math game he made for his kids) and
how many times you've lost. So, I want to just be able to read that
and come up with an average.

Thanks again!

Ryan

>Ryan Styles wrote:
>> An application a friend of mine made a while back stores some numbers
>> in the registry using the REG_BINARY format (I have no idea why he did
>> this) and I want to be able to READ those numbers and translate them
>> into something readable by a normal human being on a label. So, I
>> guess my question would be: How do you do this?
>
>It depends what format the number actually is in the registry. Is it an
>integer? Floating point? How many bytes is it? If you know the type, you
>can just do (Eg. 4 byte integer. Assuming that you know how to use
>TRegistry):
>
>var i:integer;
>
>reg.ReadBinaryData('MyValue',i,sizeof(i));
>
>Cheers,
>Nicholas Sherlock
.



Relevant Pages

  • Re: format HDD
    ... just leave the registry alone--a few ... Installing your applications to a partition other than C: ... this myself) but as you noted, they should be in their own folders. ... Now i want to format my D:\, do i go to disk management ...
    (microsoft.public.windowsxp.general)
  • Re: To format or not to format??
    ... I personally format maybe once a year....maybe longer but the reason I do is because I install ad uninstall alot of stuff. ... ever seen a "clogged" registry. ... Ray again--> see above reply, ... You're applying plumbing terms to a database, and questioning my education? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows Vista - Innovation or *another* /expensive/ Knock-Off?
    ... had their own proprietary binary format where data was stored. ... Then Microsoft decided that the Registry ... IIS, web applications defined, in the project file there were hard ... The Registry in Windows 3.11 was solely a repository ...
    (borland.public.delphi.non-technical)
  • Re: Quick Format vs Full Format
    ... when starting the PartyPoker client) and minidumps containing no further info. ... I did a complete search of my system and registry and found no ... there is a difference between quick & full format. ... Your registry would be clean after a clean install, ...
    (microsoft.public.windowsxp.general)
  • Re: Seagate Barracuda 160 GB IDE becomes corrupted. RMA?
    ... :>> find you cant even select that option with a partition that big. ... :> and offered to format it with any file system supported, ... To enable 48-bit LBA large-disk support in the registry: ... I added a value, renamed it EnableBigLba, and the default value was: ...
    (comp.sys.ibm.pc.hardware.storage)