Inserting REG_BINARY data into registry

From: Martin Searle (M.A.Searle_at_kent.ac.uk)
Date: 11/26/03


Date: Wed, 26 Nov 2003 16:59:59 -0000

Hi,

I'm writing a regedit REG file reader and simple registry editor. I've got a
bit stuck on the best way to insert REG_BINARY data into the registry, in
the .reg file this is represented like this :

"BrowserBands"=hex:11,00,00,00,04,00,00,00,64,00,00,00,80,02,00,00,64,00,00,
\

00,66,00,00,00,02,00,00,00,16,00,00,00,65,00,00,00,01,02,00,00,64,00,00,00,\
  67,00,00,00,09,00,00,00,64,00,00,00

What is the data type (an array of byte ?) that I should use to take this
large hexadecimal number, obviously I need to strip out the , and \ from it.

I am using Delphi 2 and using the windows API function RegSetValueEx which
works in much the same way as Tregistry.

Thanks for any help,

Martin Searle
Computing Service
University of Kent, UK

-- 
Martin Searle BSC(hons) Comp. Sci.,
Computing Officer (Computing)
Room S18, Cornwallis South, x7884
Web: www.seasaltersailing.org.uk


Relevant Pages

  • Re: Blocked some start-up programs?
    ... The Window's registry editor is called regedit.exe. ... *publisher: *microsoft corporation ... Judging by the name of the reg file it is doing something to your User ... Do you or did you have any Norton/Symantec software installed? ...
    (microsoft.public.windows.vista.general)
  • Re: spooler subsystem crashes?
    ... Q310353 How to Perform a Clean Boot in Windows XP ... Using Registry Editor incorrectly can cause serious problems that may ... You may double click on the REG file in Windows ... BJ Language Monitor ...
    (microsoft.public.windowsxp.general)
  • Re: Blocked some start-up programs?
    ... The Window's registry editor is called regedit.exe. ... i checked windows defender again and the program that keeps getting ... *publisher: *microsoft corporation ... Also it is being run in silent mode to run a reg file called 'uac_enable.reg' from a temp folder. ...
    (microsoft.public.windows.vista.general)
  • RE: Error on bootup
    ... this is a problem with third party printer monitor. ... Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. ... If you are running Windows NT or Windows 2000, ... and export the current key to a REG file for backup. ...
    (microsoft.public.win2000.general)