Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

New feature request -- Reg types none and binary

May
572
4
Now that there are binary buffers implemented, would you consider a way to read and write registry types REG_NONE and REG_BINARY to and from binary buffers in the next major version?

I would suggest variable function names @REGBREAD and @REGBWRITE with syntax something like

num_bytesread=@REGBREAD[binbufhandle,offset,regkey]
and
errorcode=@REGBWRITE[binbufhandle,offset,numbytes,regtype,regkey]

Right now, there is no way within TCC to read or write these values without using an external image (like REG or REGEDIT).

Example:

Reading a REG_NONE value (can be redirected to a file):

c:> reg query "HKEY_CURRENT_USER\Software\Bit Choreography\Desk Alarm\Settings" /v cats

! REG.EXE VERSION 3.0

HKEY_CURRENT_USER\Software\Bit Choreography\Desk Alarm\Settings cats REG_NONE 691D00000000000000450C01691D00000100000000F01700



Writing a REG_NONE value - make a .REG file and import it using REGEDIT:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Bit Choreography\Desk Alarm\Settings]
"Cats"=hex(0):\
69,1D,00,00,00,00,00,00,00,45,0C,01,\
69,1D,00,00,01,00,00,00,00,F0,17,00,\
69,1D,00,00,02,00,00,00,00,06,00,00
 

Similar threads

Back
Top