Re: REG_BINARY



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: REG_BINARY
    ... That is what the registry entry looks like. ... have won the game (it's a little math game he made for his kids) and ... >Ryan Styles wrote: ... >It depends what format the number actually is in the registry. ...
    (comp.lang.pascal.delphi.misc)
  • 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)